Skip to content

Do not use CRS operations before initializing QgsApplication #192

Do not use CRS operations before initializing QgsApplication

Do not use CRS operations before initializing QgsApplication #192

Workflow file for this run

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_28, release-3_34, latest ]
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
pip3 install -U --break-system-packages pip
pip3 install --break-system-packages virtualenv
virtualenv --system-site-packages .venv
.venv/bin/pip3 install -U pip setuptools
.venv/bin/pip3 install -qr requirements.txt pytest-cov
.venv/bin/pip3 install -e .
- 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/[email protected]
# changelog:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - name: Run Changelog CI
# uses: saadmk11/[email protected]
# with:
# config_file: changelog-ci-config.json