Add PR template and links to contributor guidelines #273
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| pull_request: | |
| push: | |
| branches: [ main ] | |
| jobs: | |
| tests: | |
| runs-on: ubuntu-latest | |
| container: | |
| image: qgis/qgis:${{ matrix.qgis-tags }} | |
| strategy: | |
| matrix: | |
| qgis-tags: [ release-3_34, "3.40", "3.44", "4.0-trixie", latest ] | |
| fail-fast: false | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install the latest version of uv | |
| uses: astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57 | |
| - name: Create virtualenv and install dependencies | |
| run: | | |
| uv venv --system-site-packages | |
| uv sync --locked | |
| - name: Run tests | |
| env: | |
| QGIS_IN_CI: 1 | |
| run: > | |
| xvfb-run -s '+extension GLX -screen 0 1024x768x24' | |
| .venv/bin/pytest -v --cov src/pytest_qgis --cov-report=xml -m 'not with_pytest_qt' -p no:pytest-qt tests | |
| # Upload coverage report. Will not work if the repo is private | |
| - name: Upload coverage to Codecov | |
| if: ${{ matrix.qgis-tags == 'latest' && !github.event.repository.private }} | |
| uses: codecov/codecov-action@v3 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| file: ./coverage.xml | |
| flags: pytest | |
| fail_ci_if_error: false # set to true when upload is working | |
| verbose: false | |
| code-style: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v4 | |
| - uses: pre-commit/action@v3.0.0 | |
| # changelog: | |
| # runs-on: ubuntu-latest | |
| # steps: | |
| # - uses: actions/checkout@v2 | |
| # - name: Run Changelog CI | |
| # uses: saadmk11/changelog-ci@v1.0.0 | |
| # with: | |
| # config_file: changelog-ci-config.json |