Skip to content

fix: use self.search_layer_ids again #54

fix: use self.search_layer_ids again

fix: use self.search_layer_ids again #54

Workflow file for this run

name: Tests
on:
pull_request:
push:
branches: [master, main]
jobs:
linux-tests:
runs-on: ubuntu-latest
container:
image: qgis/qgis:${{ matrix.qgis-image-tags }}
strategy:
matrix:
# When making chances here rememeber to update the tag also in line 31!
qgis-image-tags: [release-3_22]
fail-fast: false
steps:
- uses: actions/checkout@v3
- run: |
pip3 install virtualenv && virtualenv .venv --system-site-packages
- run: |
.venv/bin/pip3 install -q -r requirements.txt -r requirements-dev.txt --no-deps --only-binary=:all:
.venv/bin/pip3 install . --no-deps
- run: |
.venv/bin/pytest -v --cov=pickLayer --cov-report=xml test
env:
QT_QPA_PLATFORM: offscreen
# Upload coverage report. Will not work if the repo is private
# Rememeber to check that tag specified below can be found in the matrix created at line 16!
- if: ${{ matrix.qgis_image_tags == 'release-3_22' && !github.event.repository.private }}
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
flags: unittests
fail_ci_if_error: true
verbose: false
env:
QT_QPA_PLATFORM: offscreen
windows_tests:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: crazy-max/ghaction-chocolatey@v1
with:
args: install qgis-ltr -y
- shell: pwsh
run: |
$env:QGIS_PATH = (Get-ChildItem "C:\Program Files\QGIS *\bin" | Select-Object -First 1 -ExpandProperty FullName)
$env:PATH="$env:QGIS_PATH;$env:PATH"
$env:QGIS_PLUGIN_IN_CI=1
python-qgis-ltr.bat -m pip install -q -r requirements.txt -r requirements-dev.txt --no-deps --only-binary=:all:
python-qgis-ltr.bat -m pytest -v test
plugin_zip:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: '3.9'
# Use extra pip install . to do a non-editable install,
# so that .dist-info will go the package instead of .egg-info
- run: |
pip install -r requirements.txt --no-deps --only-binary=:all:
pip install . --no-deps
- run: |
qgis-plugin-dev-tools build
- uses: actions/upload-artifact@v3
with:
name: plugin-zip
path: dist/*.zip