Skip to content

Commit

Permalink
ci: fix qgis tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Guts committed Jan 11, 2024
1 parent 3015d7b commit 3101d9c
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/tester.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,20 @@ name: "🎳 Tester"

on:
push:
branches: [main]
branches:
- main
paths:
- "**.py"
- .github/workflows/tester.yml
- requirements/testing.txt

pull_request:
branches: [main]
branches:
- main
paths:
- "**.py"
- .github/workflows/tester.yml
- requirements/testing.txt

env:
PROJECT_FOLDER: "qtribu"
Expand Down Expand Up @@ -54,6 +58,7 @@ jobs:
MUTE_LOGS: true
NO_MODALS: 1
PYTHONPATH: "/usr/share/qgis/python/plugins:/usr/share/qgis/python:."
QT_QPA_PLATFORM: "offscreen"
WITH_PYTHON_PEP: false
options: -v /tmp/.X11-unix:/tmp/.X11-unix -v ${{ github.workspace }}:/tests_directory

Expand All @@ -64,12 +69,11 @@ jobs:
- name: Print QGIS version
run: qgis --version

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
cache: "pip"
cache-dependency-path: "requirements/testing.txt"
- name: Print Python version
run: python3 --version

- name: Setup plugin
run: qgis_setup.sh qtribu

- name: Install Python requirements
run: |
Expand Down

0 comments on commit 3101d9c

Please sign in to comment.