Skip to content

Last test changes

Last test changes #9

Workflow file for this run

name: "🎳 Tester"
on:
push:
branches: [ master ]
paths:
- '**.py'
pull_request:
branches: [ master ]
paths:
- '**.py'
env:
PROJECT_FOLDER: "plugin_qgis_lpo"
PYTHON_VERSION: 3.9
jobs:
tests-unit:
runs-on: ubuntu-latest
steps:
- name: Get source code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
cache: "pip"
cache-dependency-path: "requirements/testing.txt"
python-version: ${{ env.PYTHON_VERSION }}
- name: Install Python requirements
run: |
python -m pip install -U pip setuptools wheel
python -m pip install -U -r requirements/testing.txt
- name: Run Unit tests
run: pytest tests/unit/
test-qgis:
runs-on: ubuntu-latest
container:
image: qgis/qgis:release-3_28
env:
CI: true
DISPLAY: ":99"
MUTE_LOGS: true
NO_MODALS: 1
PYTHONPATH: "/usr/share/qgis/python/plugins:/usr/share/qgis/python:."
WITH_PYTHON_PEP: false
options: -v ${{ github.workspace }}:/tests_directory
steps:
- name: Get source code
uses: actions/checkout@v3
- name: Print QGIS version
run: qgis --version
- name: Set up Python
uses: actions/setup-python@v4
with:
cache: "pip"
cache-dependency-path: "requirements/testing.txt"
python-version: ${{ env.PYTHON_VERSION }}
- name: Install Python requirements
run: |
python3 -m pip install -U pip setuptools wheel
python3 -m pip install -U -r requirements/testing.txt
- name: Run Unit tests
run: pytest tests/qgis/
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: lpoaura/PluginQGis-LPOData