Skip to content

Commit 9a4e2fe

Browse files
committed
fix(ci): restore commands compatible with QGIS 3.28
1 parent 1645fed commit 9a4e2fe

File tree

1 file changed

+2
-15
lines changed

1 file changed

+2
-15
lines changed

.github/workflows/tester.yml

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -81,24 +81,11 @@ jobs:
8181

8282
- name: Install Python requirements
8383
run: |
84-
apt update && apt install -y python3-pip python3-venv pipx
85-
# Create a virtual environment
86-
cd /home/root/
87-
pipx run qgis-venv-creator --venv-name ".venv"
88-
# Activate the virtual environment
89-
. .venv/bin/activate
90-
# Install the requirements
84+
python3 -m pip install -U pip setuptools wheel
9185
python3 -m pip install -U -r requirements/testing.txt
9286
9387
- name: Run Unit tests
94-
run: |
95-
cd /home/root/
96-
# Activate the virtual environment
97-
. .venv/bin/activate
98-
# Run the tests
99-
# xvfb-run is used to run the tests in a virtual framebuffer
100-
# This is necessary because QGIS requires a display to run
101-
xvfb-run python3 -m pytest tests/qgis --junitxml=junit/test-results-qgis.xml --cov-report=xml:coverage-reports/coverage-qgis.xml
88+
run: pytest tests/qgis --junitxml=junit/test-results-qgis.xml --cov-report=xml:coverage-reports/coverage-qgis.xml
10289

10390
- name: Upload coverage to Codecov
10491
uses: codecov/codecov-action@v5

0 commit comments

Comments
 (0)