mirror of
https://github.com/lwthiker/curl-impersonate.git
synced 2025-08-10 10:49:26 +00:00
Fix action failing on running pytest as sudo
This commit is contained in:
4
.github/workflows/build-and-test-make.yml
vendored
4
.github/workflows/build-and-test-make.yml
vendored
@@ -33,7 +33,8 @@ jobs:
|
||||
|
||||
- name: Install dependencies for the tests script
|
||||
run: |
|
||||
pip install -r tests/requirements.txt
|
||||
# Install globally so that we can run 'pytest' with 'sudo'
|
||||
sudo pip install -r tests/requirements.txt
|
||||
|
||||
- name: Run configure script
|
||||
run: |
|
||||
@@ -59,4 +60,5 @@ jobs:
|
||||
- name: Run the tests
|
||||
run: |
|
||||
cd tests
|
||||
# sudo is needed for capturing packets
|
||||
sudo pytest . --log-cli-level DEBUG --install-dir ${{ runner.temp}}/install
|
||||
|
Reference in New Issue
Block a user