Skip to content

Merge pull request #997 from opengisch/fixes #1267

Merge pull request #997 from opengisch/fixes

Merge pull request #997 from opengisch/fixes #1267

name: Continuous integration
on:
push:
branches:
- master
- release-**
pull_request:
branches:
- '**'
release:
types: [published]
jobs:
# Run unit tests
test:
runs-on: ubuntu-22.04
strategy:
fail-fast: false # keep for now, since 3.22 and 3.28 have different bases than 3.34+
matrix:
qgis_version: [release-3_22, release-3_28, 3.34, latest]
env:
QGIS_TEST_VERSION: ${{ matrix.qgis_version }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Package PyPI Packages
run: |
sudo ./scripts/package_pip_packages.sh
- name: Test on QGIS
run: docker compose -f .docker/docker-compose.gh.yml run qgis /usr/src/.docker/run-docker-tests.sh
release:
runs-on: ubuntu-22.04
env:
OSGEO_USERNAME: mkuhn
OSGEO_PASSWORD: ${{ secrets.OSGEO_PASSWORD }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TX_TOKEN: ${{ secrets.TX_TOKEN }}
GITHUB_REF: ${{ github.ref }}
if: ${{ github.event_name == 'release' }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install dependencies
run: |
sudo apt update && sudo apt install qtbase5-dev qttools5-dev-tools
sudo pip install qgis-plugin-ci
- name: Package PyPI Packages
run: |
sudo ./scripts/package_pip_packages.sh
- name: Release
run: |
qgis-plugin-ci release ${GITHUB_REF##*/} --transifex-token ${TX_TOKEN} --github-token ${GITHUB_TOKEN} --osgeo-username ${OSGEO_USERNAME} --osgeo-password ${OSGEO_PASSWORD} --asset-path QgisModelBaker/libs
translations:
runs-on: ubuntu-22.04
env:
TX_TOKEN: ${{ secrets.TX_TOKEN }}
if: ${{ github.ref == 'refs/heads/master' && github.event_name == 'push' }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install dependencies
run: sudo pip install qgis-plugin-ci
- name: 🌍 Push translations
run: |
qgis-plugin-ci push-translation ${TX_TOKEN}