Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Test

Test #1335

Workflow file for this run

name: Test
on:
push:
pull_request:
schedule:
- cron: '0 0 * * 0'
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v3
with:
path: .venv
key: poetry-${{ hashFiles('poetry.lock')}}
restore-keys: |
peotry-
- name: Build the project
run: |
echo "ENV=dev" > .env
docker-compose up -d --build backend
- name: Lint the code
run: |
docker-compose exec -T backend black --check .
docker-compose exec -T backend flake8
docker-compose exec -T backend python manage.py makemigrations --check --dry-run --no-input
- name: Run pytest
run: docker-compose exec -T backend pytest --no-cov-on-fail --cov --create-db -vv