|
4 | 4 | push: |
5 | 5 | branches: |
6 | 6 | - main |
| 7 | + - dev* |
7 | 8 | paths: |
8 | 9 | - '**.py' |
9 | 10 | - .github/workflows/tester.yml |
@@ -45,38 +46,47 @@ jobs: |
45 | 46 | - name: Run Unit tests |
46 | 47 | run: pytest -p no:qgis tests/unit/ |
47 | 48 |
|
48 | | - # test-qgis: |
49 | | - # runs-on: ubuntu-latest |
50 | | - |
51 | | - # container: |
52 | | - # image: qgis/qgis:release-3_28 |
53 | | - # env: |
54 | | - # CI: true |
55 | | - # DISPLAY: ":1" |
56 | | - # MUTE_LOGS: true |
57 | | - # NO_MODALS: 1 |
58 | | - # PYTHONPATH: "/usr/share/qgis/python/plugins:/usr/share/qgis/python:." |
59 | | - # QT_QPA_PLATFORM: "offscreen" |
60 | | - # WITH_PYTHON_PEP: false |
61 | | - # options: -v /tmp/.X11-unix:/tmp/.X11-unix -v ${{ github.workspace }}:/tests_directory |
62 | | - |
63 | | - # steps: |
64 | | - # - name: Get source code |
65 | | - # uses: actions/checkout@v6 |
66 | | - |
67 | | - # - name: Print QGIS version |
68 | | - # run: qgis --version |
69 | | - |
70 | | - # - name: Setup plugin |
71 | | - # run: qgis_setup.sh loopstructural |
72 | | - |
73 | | - |
74 | | - # - name: Install Python requirements |
75 | | - # run: | |
76 | | - # python3 -m pip install -U pip setuptools wheel |
77 | | - # python3 -m pip install -U -r requirements/testing.txt |
78 | | - |
79 | | - # - name: Run Unit tests |
80 | | - # run: | |
81 | | - # Xvfb :1 & |
82 | | - # python3 -m pytest tests/qgis/ |
| 49 | + test-qgis: |
| 50 | + runs-on: ubuntu-latest |
| 51 | + |
| 52 | + container: |
| 53 | + image: qgis/qgis:release-3_28 |
| 54 | + env: |
| 55 | + CI: true |
| 56 | + DISPLAY: ":1" |
| 57 | + MUTE_LOGS: true |
| 58 | + NO_MODALS: "1" |
| 59 | + PYTHONPATH: "/usr/share/qgis/python/plugins:/usr/share/qgis/python:." |
| 60 | + QT_QPA_PLATFORM: "offscreen" |
| 61 | + WITH_PYTHON_PEP: "false" |
| 62 | + options: -v /tmp/.X11-unix:/tmp/.X11-unix -v ${{ github.workspace }}:/tests_directory |
| 63 | + |
| 64 | + steps: |
| 65 | + - name: Get source code |
| 66 | + uses: actions/checkout@v6 |
| 67 | + |
| 68 | + - name: Print QGIS version |
| 69 | + run: qgis --version |
| 70 | + |
| 71 | + - name: Install system packages (GDAL/PROJ/GEOS build deps) |
| 72 | + run: | |
| 73 | + set -e |
| 74 | + apt-get update |
| 75 | + DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ |
| 76 | + build-essential gdal-bin libgdal-dev proj-bin libproj-dev libgeos-dev python3-dev xvfb |
| 77 | + rm -rf /var/lib/apt/lists/* |
| 78 | +
|
| 79 | + - name: Setup plugin |
| 80 | + run: bash /tests_directory/scripts/qgis_setup.sh loopstructural |
| 81 | + |
| 82 | + |
| 83 | + - name: Install Python requirements |
| 84 | + run: | |
| 85 | + python3 -m pip install -U pip setuptools wheel |
| 86 | + python3 -m pip install -U -r requirements/testing.txt |
| 87 | + python3 -m pip install -U -r /tests_directory/loopstructural/requirements.txt |
| 88 | +
|
| 89 | + - name: Run Unit tests |
| 90 | + run: | |
| 91 | + Xvfb :1 & |
| 92 | + python3 -m pytest tests/qgis/ |
0 commit comments