Skip to content

Commit

Permalink
I'm only running the main & test now
Browse files Browse the repository at this point in the history
  • Loading branch information
kek20009 committed Oct 31, 2024
1 parent 44b32f6 commit 3673ff3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ms5.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,10 @@ jobs:
docker run -d -p 5000:5000 --memory="512m" --name api-container api-image # Start container on port 5000
#Run all Python tests in the directory
- name: Run all Python tests in directory
- name: Run the Python tests in directory
run: |
docker exec api-container pytest $(find . -name 'test_*.py') # Execute tests in Docker
docker exec api-container python3 /Backend/main.py # Execute main.py
docker exec api-container pytest /Backend/test_main.py # Execute test_main.py
#Stop and Remove API Container after tests
- name: Stop and Remove API Container
Expand Down

0 comments on commit 3673ff3

Please sign in to comment.