From 3673ff3a7f20d7b74353d6ef0b6b5d03810cf755 Mon Sep 17 00:00:00 2001 From: kek20009 Date: Thu, 31 Oct 2024 15:18:52 -0400 Subject: [PATCH] I'm only running the main & test now --- .github/workflows/ms5.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ms5.yaml b/.github/workflows/ms5.yaml index 0a1d653..cc8939b 100644 --- a/.github/workflows/ms5.yaml +++ b/.github/workflows/ms5.yaml @@ -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