diff --git a/.github/labeler.yml b/.github/labeler.yml index 1b822f44..a9ee1ea2 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -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"] @@ -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/** diff --git a/.github/workflows/auto-labeler.yml b/.github/workflows/auto-labeler.yml index c4774654..85fc77e0 100644 --- a/.github/workflows/auto-labeler.yml +++ b/.github/workflows/auto-labeler.yml @@ -1,6 +1,6 @@ name: "🏷 PR Labeler" on: - - pull_request_target + - pull_request jobs: triage: diff --git a/.github/workflows/tester.yml b/.github/workflows/tester.yml index c36bb1c0..438277d3 100644 --- a/.github/workflows/tester.yml +++ b/.github/workflows/tester.yml @@ -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" @@ -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 @@ -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: |