Update to version 3.1.3 #1086
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: Test plugin (stable) | |
| on: | |
| schedule: | |
| - cron: '0 12 * * *' | |
| push: | |
| branches: [ "master" ] | |
| pull_request: | |
| branches: [ "master" ] | |
| permissions: | |
| contents: read | |
| jobs: | |
| security-scan: | |
| # bandit + detect-secrets are pure Python and need no QGIS, so this runs | |
| # on a plain runner. Mirrors `python scripts/check_security.py` locally. | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| - name: Install security tools | |
| run: python -m pip install bandit detect-secrets | |
| - name: Run security checks (bandit + detect-secrets) | |
| run: python scripts/check_security.py | |
| build-linux-stable: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Pull qgis image | |
| run: docker pull qgis/qgis:stable | |
| - name: Pip install | |
| run: | | |
| docker run --name qgis_container \ | |
| --volume $(pwd):/app \ | |
| -w=/app \ | |
| qgis/qgis:stable sh -c " | |
| python3 -m pip install --ignore-installed -r requirements_dev.txt --break-system-packages | |
| " | |
| docker commit qgis_container qgis_with_deps | |
| - name: Run tests | |
| run: | | |
| docker run --volume $(pwd):/app -w=/app qgis_with_deps sh -c " | |
| export PYTHONPATH=\$PYTHONPATH:/app && \ | |
| xvfb-run -s '+extension GLX -screen 0 1024x768x24' python3 -m pytest tests -s | |
| " |