Skip to content

Commit

Permalink
Update run_tests.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
malenelu authored and GitHub Enterprise committed Apr 1, 2025
1 parent 944927b commit 2a5ebec
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,14 @@ jobs:
cd $GITHUB_WORKSPACE
docker compose -f docker-compose.stag.yml --verbose config && printf "OK\n" || exit 1
- name: Build and run docker image for tests
run: docker compose -f docker-compose.stag.yml up --force-recreate --build -d
- name: Sets up test containers
run: docker compose -f docker-compose.stag.yml up --build -d

- name: Verify that gateway is available
run: docker ps

- name: Run all unit tests in backend/tests folder
run: docker exec secfit_stag_backend python manage.py test tests

- name: Stops test containers
run: docker-compose -f docker-compose.stag.yml down

0 comments on commit 2a5ebec

Please sign in to comment.