@@ -13,28 +13,36 @@ jobs:
13
13
linux_tests :
14
14
# The type of runner that the job will run on
15
15
runs-on : ubuntu-latest
16
+ container :
17
+ image : qgis/qgis:${{ matrix.qgis-image-tags }}
16
18
strategy :
17
19
matrix :
18
20
# Remove unsupported versions and add more versions. Use LTR version in the cov_tests job
19
- docker_tags : [release-3_10 , release-3_16 , latest]
21
+ docker_tags : [release-3_28 , release-3_34 , latest]
20
22
fail-fast : false
21
23
22
24
# Steps represent a sequence of tasks that will be executed as part of the job
23
25
steps :
24
26
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
25
- - uses : actions/checkout@v2
27
+ - uses : actions/checkout@v4
26
28
with :
27
29
submodules : true
28
30
29
- - name : Pull qgis
30
- run : docker pull qgis/qgis:${{ matrix.docker_tags }}
31
+ - name : Install dependencies
32
+ run : |
33
+ pip3 install virtualenv
34
+ virtualenv .venv --system-site-packages
35
+ source .venv/bin/activate
36
+ pip install -qr requirements-dev.txt --no-deps
37
+ pip install . --no-deps
31
38
32
- # Runs all tests
33
39
- name : Run tests
34
- run : >
35
- docker run --rm --net=host --volume `pwd`:/app -w=/app -e QGIS_PLUGIN_IN_CI=1 qgis/qgis:${{ matrix.docker_tags }} sh -c
36
- "pip3 install -qr requirements-dev.txt && xvfb-run -s '+extension GLX -screen 0 1024x768x24'
37
- pytest -v --cov=arho_feature_template --cov-report=xml"
40
+ env :
41
+ QGIS_PLUGIN_IN_CI : 1
42
+ QT_QPA_PLATFORM : offscreen
43
+ run : |
44
+ source .venv/bin/activate
45
+ pytest
38
46
39
47
windows_tests :
40
48
runs-on : windows-latest
0 commit comments