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 a7e8190 commit ae1e13a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/deploy_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,14 @@ jobs:
- name: Set up test containers
run: docker-compose -f docker-compose.stag.yml up --build -d

- name: Run backend unit tests with coverage
- name: Run backend unit tests
run: docker exec secfit_stag_backend python manage.py test tests

- name: Collect coverage
run: |
docker exec secfit_stag_backend coverage run --source=. manage.py test tests
docker exec secfit_stag_backend coverage html
docker cp secfit_stag_backend:/app/htmlcov . # Copy coverage HTML to host
docker cp secfit_stag_backend:/app/htmlcov . # Copy coverage HTML report to host
- name: Archive coverage report
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit ae1e13a

Please sign in to comment.