Skip to content

P3 (all in 1)

P3 (all in 1) #421

Workflow file for this run

name: Lint, Check, Build, Test
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
on:
push:
branches:
- master
pull_request:
jobs:
build_package_lint_check:
name: Build, package, lint, check
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: "3.9"
cache: "pip"
- name: Setup, build, install
run: |
pip install build
python -m build .
pip install ./dist/comptages-0.1-py3-none-any.whl[test]
- name: Package
run: qgis-plugin-ci --no-validation package 'test'
- name: Lint
run: black . --check
test:
runs-on: ubuntu-22.04
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
postgis_versions:
- 12-3.4
- 15-3.4
name: Test with PostGIS v. ${{ matrix.postgis_versions }}
steps:
- uses: actions/checkout@v4
- name: Start docker stack
run: POSTGIS_VERSION=${{ matrix.postgis_versions }} docker compose up db -d
- name: Running tests
run: POSTGIS_VERSION=${{ matrix.postgis_versions }} docker compose run qgis_tester
- name: Upload test coverage report
uses: actions/upload-artifact@v4
with:
name: coverage_report-${{ matrix.postgis_versions }}.txt
path: test_outputs/coverage_report.txt