Merge pull request #257 from stac-utils/release-1_1_2 #453
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: Continuous Integration | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
types: | |
- edited | |
- opened | |
- reopened | |
- synchronize | |
branches: | |
- main | |
env: | |
# Global environment variable | |
IMAGE: qgis/qgis | |
WITH_PYTHON_PEP: "true" | |
MUTE_LOGS: "true" | |
jobs: | |
test: | |
runs-on: ubuntu-22.04 | |
name: Running tests on QGIS ${{ matrix.qgis_version_tag }} | |
strategy: | |
fail-fast: false | |
matrix: | |
qgis_version_tag: | |
- release-3_16 | |
- release-3_22 | |
- release-3_34 | |
- release-3_36 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: Preparing docker-compose environment | |
env: | |
QGIS_VERSION_TAG: ${{ matrix.qgis_version_tag }} | |
run: | | |
cat << EOF > .env | |
QGIS_VERSION_TAG=${QGIS_VERSION_TAG} | |
IMAGE=${IMAGE} | |
ON_TRAVIS=true | |
MUTE_LOGS=${MUTE_LOGS} | |
WITH_PYTHON_PEP=${WITH_PYTHON_PEP} | |
EOF | |
- name: Install poetry | |
uses: Gr1N/setup-poetry@v8 | |
with: | |
poetry-version: 1.2.2 | |
- name: Install plugin dependencies | |
run: poetry install | |
- name: Preparing test environment | |
run: | | |
cat .env | |
docker pull "${IMAGE}":${{ matrix.qgis_version_tag }} | |
poetry run python admin.py build --tests | |
docker-compose up -d | |
sleep 10 | |
- name: Run test suite | |
run: | | |
docker-compose exec -T qgis-testing-environment sh -c "pip3 install flask" | |
docker-compose exec -T qgis-testing-environment qgis_testrunner.sh test_suite.test_package |