fix: always fetch Buienradar station list so admin form saves correct… #145
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: Automated tests | |
| on: | |
| push: | |
| branches: | |
| - 'v*' | |
| - 'development' | |
| - 'wip/*' | |
| pull_request: | |
| branches-ignore: | |
| - 'dependabot/' | |
| jobs: | |
| main_test: | |
| name: 'Python ${{ matrix.python-version }}' | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| strategy: | |
| matrix: | |
| python-version: | |
| - '3.14' | |
| env: | |
| # Do not log verbosely | |
| DSMRREADER_LOGLEVEL: ERROR | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Build docker image(s) | |
| run: | | |
| ln -s provisioning/container/compose.test.yml compose.yml | |
| docker compose build --build-arg PYTHON_VERSION=${{ matrix.python-version }} | |
| - name: Run docker image(s) | |
| run: | | |
| docker compose up -d --remove-orphans | |
| sleep 5 | |
| - name: Check code formatting with Black | |
| run: docker compose run tests-dsmr-app poetry run black --check . | |
| - name: Check Django templates with djLint | |
| run: docker compose run tests-dsmr-app poetry run djlint --check . | |
| - name: Check flake8 | |
| run: docker compose run tests-dsmr-app poetry run flake8 -v | |
| - name: Type check with MyPy | |
| run: docker compose run tests-dsmr-app poetry run mypy /app/src | |
| - name: Run PostgreSQL tests | |
| run: docker compose run tests-dsmr-app poetry run pytest |