Fixbug in testing for thematic band change #132
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: Tests | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
docker_tags: [ ltr, stable ] | |
fail-fast: false | |
env: | |
QGIS_TEST_VERSION: ${{ matrix.docker_tags }} | |
# cf https://docs.qgis.org/3.16/en/docs/user_manual/introduction/qgis_configuration.html#running-qgis-with-advanced-settings | |
QGIS_COMMAND: qgis --noplugins --noversioncheck --nologo --version-migration --code ./tests/install_plugin.py | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: Zip artifact | |
run: (pip3 install PyQt5 && make zip) | |
- name: Pull QGIS ${QGIS_TEST_VERSION} | |
run: docker pull qgis/qgis:${QGIS_TEST_VERSION} | |
# Runs all tests | |
- name: Run install test | |
run: docker run --rm -v `pwd`:/tests_directory -t -w /tests_directory qgis/qgis:${QGIS_TEST_VERSION} sh -c "xvfb-run ${QGIS_COMMAND}" | |
- name: Run tests | |
run: docker compose -f .docker/docker-compose.gh.yml run qgis /usr/src/AcATaMa/.docker/run-docker-tests.sh | |