Bump django-geostore from 0.8.0 to 1.0.0 #1308
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: Unit tests | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
DEBIAN_FRONTEND: noninteractive | |
jobs: | |
backend: | |
name: Python unit tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build image | |
run: | | |
cp db.env.dist db.env | |
cp app.env.dist app.env | |
docker compose build web | |
- name: Test migrations | |
run: | | |
docker compose run --user root --rm web ./manage.py migrate | |
- name: Check migrations | |
run: | | |
docker compose run --user root --rm web ./manage.py makemigrations --check | |
- name: Verify translation files | |
run: | | |
docker compose run --user root --rm web ./manage.py makemessages -a --no-location --no-obsolete | |
- uses: tj-actions/verify-changed-files@v17 | |
id: verify-changed-files | |
with: | |
files: | | |
**/*.po | |
- name: Validating translations | |
if: steps.verify-changed-files.outputs.files_changed == 'true' | |
run: | | |
echo "Translation file(s) changed: ${{ steps.verify-changed-files.outputs.changed_files }}" | |
git diff | |
core.setFailed('Please fix your translation files with ./manage.py makemessages -a --no-location --no-obsolete') | |
- name: Tests | |
run: | | |
docker compose run --user root --rm web coverage run ./manage.py test --settings=project.settings.tests | |
- name: Prepare coverage report | |
run: | | |
docker compose run --user root --rm web coverage xml | |
- uses: codecov/codecov-action@v3 | |
with: | |
flags: backend-unittests | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: ./coverage.xml |