Skip to content

Commit

Permalink
Merge pull request #150 from geotribu/ci/fix-qgis-tests-workflow
Browse files Browse the repository at this point in the history
ci: fix qgis tests
  • Loading branch information
Guts authored Jan 11, 2024
2 parents 2c5dccf + 390e68a commit 31c0b5a
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 19 deletions.
28 changes: 18 additions & 10 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
ci-cd:
- any-glob-to-any-file: .github/**
- changed-files:
- any-glob-to-any-file: .github/**

dependencies:
- any-glob-to-any-file: requirements/*.txt
- requirements.txt
- changed-files:
- any-glob-to-any-file:
- requirements/*.txt
- requirements.txt

documentation:
- changed-files:
- any-glob-to-any-file: docs/**
- requirements/documentation.txt
- any-glob-to-any-file:
- docs/**
- requirements/documentation.txt

enhancement:
- head-branch: ["^feature", "feature", "^improve", "improve"]
Expand All @@ -18,11 +22,15 @@ packaging:

tooling:
- head-branch: ["^tooling", "tooling"]
- codecov.yml
- .pre-commit-config.yaml
- sonar-project.properties
- changed-files:
- any-glob-to-any-file:
- codecov.yml
- .pre-commit-config.yaml
- sonar-project.properties

UI:
- head-branch: ["^ui", "ui"]
- any-glob-to-any-file: qtribu/**/*.ui
- any-glob-to-any-file: qtribu/gui/**
- changed-files:
- any-glob-to-any-file:
- qtribu/**/*.ui
- qtribu/gui/**
2 changes: 1 addition & 1 deletion .github/workflows/auto-labeler.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: "🏷 PR Labeler"
on:
- pull_request_target
- pull_request

jobs:
triage:
Expand Down
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 31c0b5a

Please sign in to comment.