Set map style correctly when creating a layer #1112
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: 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 |