Bump release to 0.4.1 #212
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: 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_22 | |
- release-3_28 | |
- release-3_34 | |
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 |