Skip to content

Support subplugins #202

Support subplugins

Support subplugins #202

Workflow file for this run

name: Validations for pull requests
on:
pull_request:
branches: [main]
jobs:
code-style:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: pre-commit/[email protected]
test:
# The type of runner that the job will run on
runs-on: ubuntu-latest
container:
image: qgis/qgis:${{ matrix.qgis-image-tag }}
strategy:
matrix:
qgis-image-tag:
- release-3_16
- release-3_22
- release-3_28
fail-fast: false
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- run: |
pip3 install -qr requirements-dev.txt
- run: |
pytest -v
env:
QT_QPA_PLATFORM: offscreen
QGIS_PLUGIN_IN_CI: 1
QGIS_PLUGIN_TOOLS_IN_CI: 1
build:
name: Build wheels and source distribution
needs: [code-style, test]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install build dependencies
run: python -m pip install --upgrade build
- name: Build
run:
python -m build
- uses: actions/upload-artifact@v3
with:
name: artifacts
path: dist/*
if-no-files-found: error