mirror of
https://github.com/libfuse/libfuse.git
synced 2024-11-23 12:14:15 +08:00
Install all test/build python packages from requirements.txt
Have GitHub actions setup python on runners and install all python dependencies via pip. Signed-off-by: Ashley Pittman <ashley@pittman.co.uk>
This commit is contained in:
parent
dd95d13aac
commit
e3bd7de517
7
.github/workflows/pr-ci.yml
vendored
7
.github/workflows/pr-ci.yml
vendored
@ -23,8 +23,11 @@ jobs:
|
||||
steps:
|
||||
- name: Install dependencies (Ubuntu)
|
||||
if: runner.os == 'Linux'
|
||||
run: sudo apt-get update && sudo apt-get install -y clang doxygen gcc gcc-10 gcc-9 libstdc++-10-dev libstdc++-9-dev ninja-build python3-pip python3-setuptools valgrind
|
||||
run: sudo apt-get update && sudo apt-get install -y clang doxygen gcc gcc-10 gcc-9 valgrind
|
||||
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
|
||||
- run: test/ci-install.sh
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.12'
|
||||
- run: pip install -r requirements.txt
|
||||
- run: test/ci-build.sh
|
||||
|
||||
|
8
requirements.txt
Normal file
8
requirements.txt
Normal file
@ -0,0 +1,8 @@
|
||||
# Packages required for building and testing libfuse only,
|
||||
# no python code is required when using libfuse.
|
||||
# Build packages:
|
||||
meson
|
||||
ninja
|
||||
# Test packages:
|
||||
looseversion
|
||||
pytest
|
@ -56,7 +56,7 @@ non_sanitized_build()
|
||||
|
||||
meson setup -Dprefix=${PREFIX_DIR} -D werror=true ${build_opts} "${SOURCE_DIR}" || (cat meson-logs/meson-log.txt; false)
|
||||
ninja
|
||||
sudo ninja install
|
||||
sudo env PATH=$PATH ninja install
|
||||
|
||||
# libfuse will first try the install path and then system defaults
|
||||
sudo chmod 4755 ${PREFIX_DIR}/bin/fusermount3
|
||||
@ -99,7 +99,7 @@ sanitized_build()
|
||||
# reconfigure to ensure it uses all additional options
|
||||
meson setup --reconfigure "${SOURCE_DIR}"
|
||||
ninja
|
||||
sudo ninja install
|
||||
sudo env PATH=$PATH ninja install
|
||||
sudo chmod 4755 ${PREFIX_DIR}/bin/fusermount3
|
||||
|
||||
# also needed for some of the tests
|
||||
@ -107,7 +107,7 @@ sanitized_build()
|
||||
sudo chmod 4755 util/fusermount3
|
||||
|
||||
# Test as root and regular user
|
||||
sudo ${TEST_CMD}
|
||||
sudo env PATH=$PATH ${TEST_CMD}
|
||||
# Cleanup temporary files (since they are now owned by root)
|
||||
sudo rm -rf test/.pytest_cache/ test/__pycache__
|
||||
|
||||
|
@ -1,9 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
sudo python3 -m pip install --upgrade pip
|
||||
sudo python3 -m pip install pytest meson==1.0.1 looseversion
|
||||
valgrind --version
|
||||
ninja --version
|
||||
meson --version
|
Loading…
Reference in New Issue
Block a user