File tree 1 file changed +10
-5
lines changed
1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -17,17 +17,22 @@ jobs:
17
17
18
18
steps :
19
19
- uses : actions/checkout@v4
20
- - name : Install dependencies
20
+ - name : Install venv
21
21
run : |
22
- python3 -m pip install -U pip setuptools
23
- pip3 install -qr requirements.txt pytest-cov
24
- pip3 install -e .
22
+ apt update
23
+ apt install -y python3-venv
24
+ - name : Create virtualenv and install dependencies
25
+ run : |
26
+ python3 -m venv --system-site-packages .venv
27
+ .venv/bin/pip install -U pip setuptools
28
+ .venv/bin/pip install -qr requirements.txt pytest-cov
29
+ .venv/bin/pip install -e .
25
30
- name : Run tests
26
31
env :
27
32
QGIS_IN_CI : 1
28
33
run : >
29
34
xvfb-run -s '+extension GLX -screen 0 1024x768x24'
30
- python3 -m pytest -v --cov src/pytest_qgis --cov-report=xml -m 'not with_pytest_qt' -p no:pytest-qt tests
35
+ .venv/bin/ pytest -v --cov src/pytest_qgis --cov-report=xml -m 'not with_pytest_qt' -p no:pytest-qt tests
31
36
32
37
# Upload coverage report. Will not work if the repo is private
33
38
- name : Upload coverage to Codecov
You can’t perform that action at this time.
0 commit comments