Skip to content

QGIS3

QGIS3 #1

Workflow file for this run

name: PR Validation
on:
workflow_dispatch:
pull_request:
types:
- opened
- synchronize
- reopened
- ready_for_review
jobs:
precommit:
name: Static Analysis/Linting/Prettifier
runs-on: ubuntu-latest
if: ${{ github.event.pull_request.draft == false && github.actor != 'dependabot[bot]' }}
steps:
- uses: actions/checkout@v4.1.1
with:
fetch-depth: 0
- uses: actions/setup-python@v4
with:
python-version: 3.9
- uses: pre-commit/action@v3.0.0
with:
extra_args: --color=always --from-ref ${{ github.event.pull_request.base.sha }} --to-ref ${{ github.event.pull_request.head.sha }}
unit-tests:
name: Unit Tests
runs-on: qgis/qgis:release-3_30
if: ${{ github.event.pull_request.draft == false && github.actor != 'dependabot[bot]' }}
steps:
- name: Checkout code
uses: actions/checkout@v4.1.1
with:
fetch-depth: 0
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install Deps
run: |
python -m pip install --upgrade pytest-qgis pydevd-pycharm
- name: Run Tests
run: |
poetry run pytest