UIの修正,作成したCS立体図へのズーム設定 #30
Workflow file for this run
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: Test plugin | |
on: | |
pull_request: | |
branches: | |
- main | |
env: | |
# Docker settings | |
DOCKER_IMAGE: qgis/qgis | |
jobs: | |
Test-plugin: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
docker_tags: [release-3_28, release-3_34] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Export requirements.txt | |
run: | | |
pip3 install poetry | |
poetry export --with dev -f requirements.txt -o requirements.txt | |
- name: Docker pull and create qgis-testing-environment | |
run: | | |
docker pull "$DOCKER_IMAGE":${{ matrix.docker_tags }} | |
docker run -d --name qgis-testing-environment -v .:/tests_directory/plugin_dir -e DISPLAY=:99 "$DOCKER_IMAGE":${{ matrix.docker_tags }} | |
- name: Docker set up QGIS | |
run: | | |
docker exec qgis-testing-environment sh -c "qgis_setup.sh plugin_dir" | |
docker exec qgis-testing-environment sh -c "rm -f /root/.local/share/QGIS/QGIS3/profiles/default/python/plugins/plugin_dir" | |
docker exec qgis-testing-environment sh -c "ln -s /tests_directory/plugin_dir /root/.local/share/QGIS/QGIS3/profiles/default/python/plugins/plugin_dir" | |
docker exec qgis-testing-environment sh -c "pip3 install -r /tests_directory/plugin_dir/requirements.txt" | |
- name: Docker run plugin tests | |
run: | | |
docker exec qgis-testing-environment sh -c "qgis_testrunner.sh plugin_dir.test_suite.test_package" |