Remove deprecated functionality #153
Workflow file for this run
This file contains 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_16, latest ] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: | | |
pip3 install -U pip | |
pip3 install -qr requirements.txt pytest-cov | |
pip3 install -e . | |
- name: Run tests | |
run: > | |
xvfb-run -s '+extension GLX -screen 0 1024x768x24' | |
pytest -v --cov src/pytest_qgis --cov-report=xml -m 'not with_pytest_qt' -p no:pytest-qt tests | |
env: | |
QGIS_IN_CI: 1 | |
# 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@v2 | |
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@v3 | |
- 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 |