Skip to content

Commit

Permalink
[tests] Swith to SwissLocator way of running tests (recommended)
Browse files Browse the repository at this point in the history
  • Loading branch information
gacarrillor committed Jan 23, 2025
1 parent 319e6de commit 896e7f9
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/test2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Run Tests 2
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
branches:
- main

env:
QGIS_TEST_VERSION: latest



jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
qgis_version: [ latest,3.34.14-noble,final-3_28_15 ] # QGIS 3.28, 3.34.x and latest
env:
QGIS_TEST_VERSION: ${{ matrix.qgis_version }}

steps:
- uses: actions/checkout@v4
with:
submodules: true

- name: docker test
run: |
docker run -e PYTHONPATH=/usr/share/qgis/python/plugins -v $(pwd):/usr/src -w /usr/src qgis/qgis:${QGIS_TEST_VERSION} sh -c 'xvfb-run pytest'

0 comments on commit 896e7f9

Please sign in to comment.