Skip to content

Commit

Permalink
Update deploy_test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Garima Ketan Chauhan authored and GitHub Enterprise committed Apr 2, 2025
1 parent 34b3b79 commit 0246d23
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/deploy_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,11 @@ jobs:
export-variables: true
keys-case: bypass

- name: Remove previous containers
run: |
docker rm -f secfit_stag_backend || true
- name: Set up test containers
run: docker compose -f docker-compose.stag.yml up --build -d

- name: Run backend unit tests with coverage (single worker)
run: |
docker exec secfit_stag_backend coverage run --source='.' manage.py test --parallel=1
docker exec secfit_stag_backend coverage report
- name: Run backend unit tests
run: docker exec secfit_stag_backend python manage.py test tests

- name: Tear down test containers
run: docker compose -f docker-compose.stag.yml down
Expand Down

0 comments on commit 0246d23

Please sign in to comment.