This repository has been archived by the owner on May 13, 2024. It is now read-only.
chore(deps): bump django from 3.2.19 to 4.1.13 #239
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: Test | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/cache@v4 | |
with: | |
path: .venv | |
key: poetry-${{ hashFiles('poetry.lock')}} | |
restore-keys: | | |
peotry- | |
- name: Build the project | |
run: | | |
echo -e "ENV=dev\nUID=$UID" > .env | |
docker-compose up -d --build backend | |
- name: Lint the code | |
run: | | |
docker-compose run --rm backend ruff format --check | |
docker-compose run --rm backend ruff check . --output-format=github | |
- name: Check for missing migrations | |
run: docker-compose run --rm backend python manage.py makemigrations --check --dry-run --no-input | |
- name: Run pytest | |
run: docker-compose run --rm backend pytest --no-cov-on-fail --cov --create-db -vv |