Skip to content

Add colors to login/logout button #1134

Add colors to login/logout button

Add colors to login/logout button #1134

Workflow file for this run

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