Skip to content

Commit

Permalink
ci: don't migrate db twice during tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtemSBulgakov committed Jan 29, 2025
1 parent c230244 commit 64b881c
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,6 @@ jobs:
- name: Run app in docker
run: docker compose -f deploy/docker-compose.test.yaml up -d --wait

- name: Migrate database
run: |
docker compose -f deploy/docker-compose.test.yaml exec -T adminpanel python manage.py makemigrations
docker compose -f deploy/docker-compose.test.yaml exec -T adminpanel python manage.py migrate auth
docker compose -f deploy/docker-compose.test.yaml exec -T adminpanel python manage.py migrate
docker compose -f deploy/docker-compose.test.yaml exec -T adminpanel python manage.py collectstatic --noinput
- name: Run tests
run: docker compose -f deploy/docker-compose.test.yaml exec -T adminpanel pytest

Expand Down

0 comments on commit 64b881c

Please # to comment.