fix: allow different crs for input data and model. Force model crs to… #114
Workflow file for this run
This file contains hidden or 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: "🎳 Tester" | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - dev* | |
| paths: | |
| - '**.py' | |
| - .github/workflows/tester.yml | |
| - requirements/testing.txt | |
| pull_request: | |
| branches: | |
| - main | |
| paths: | |
| - '**.py' | |
| - .github/workflows/tester.yml | |
| - requirements/testing.txt | |
| env: | |
| PROJECT_FOLDER: "loopstructural" | |
| PYTHON_VERSION: 3.9 | |
| jobs: | |
| tests-unit: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Get source code | |
| uses: actions/checkout@v6 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| cache: "pip" | |
| cache-dependency-path: "requirements/testing.txt" | |
| python-version: ${{ env.PYTHON_VERSION }} | |
| - name: Install Python requirements | |
| run: | | |
| python -m pip install -U pip setuptools wheel | |
| python -m pip install -U -r requirements/testing.txt | |
| - name: Run Unit tests | |
| run: pytest -p no:qgis tests/unit/ | |
| test-qgis: | |
| runs-on: ubuntu-latest | |
| container: | |
| image: qgis/qgis:release-3_28 | |
| env: | |
| CI: true | |
| DISPLAY: ":1" | |
| MUTE_LOGS: true | |
| NO_MODALS: "1" | |
| PYTHONPATH: "/usr/share/qgis/python/plugins:/usr/share/qgis/python:." | |
| QT_QPA_PLATFORM: "offscreen" | |
| WITH_PYTHON_PEP: "false" | |
| options: -v /tmp/.X11-unix:/tmp/.X11-unix -v ${{ github.workspace }}:/tests_directory | |
| steps: | |
| - name: Get source code | |
| uses: actions/checkout@v6 | |
| - name: Print QGIS version | |
| run: qgis --version | |
| - name: Install system packages (GDAL/PROJ/GEOS build deps) | |
| run: | | |
| set -e | |
| apt-get update | |
| DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ | |
| build-essential gdal-bin libgdal-dev proj-bin libproj-dev libgeos-dev python3-dev xvfb | |
| rm -rf /var/lib/apt/lists/* | |
| - name: Setup plugin | |
| run: bash /tests_directory/scripts/qgis_setup.sh loopstructural | |
| - name: Install Python requirements | |
| run: | | |
| python3 -m pip install -U pip setuptools wheel | |
| python3 -m pip install -U -r requirements/testing.txt | |
| python3 -m pip install -U -r /tests_directory/loopstructural/requirements.txt | |
| - name: Run Unit tests | |
| run: | | |
| Xvfb :1 & | |
| python3 -m pytest tests/qgis/ |