diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2f0813f3b..f2b7e2539 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -68,10 +68,6 @@ jobs: docker-compose -f test-docker-compose.yaml exec -T unit_test pylint api.user_manager docker-compose -f test-docker-compose.yaml exec -T unit_test pylint tests/unit_tests - - name: Run pytest - run: | - docker-compose -f test-docker-compose.yaml exec -T unit_test pytest -vs tests/unit_tests/ - - name: Stop docker containers if: always() run: | diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 51fcf5f75..e1d34e1a6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -40,7 +40,11 @@ jobs: - name: Run API containers run: | - docker-compose -f test-docker-compose.yaml up -d api db redis storage ssh + docker-compose -f test-docker-compose.yaml up -d api db redis storage ssh unit_test + + - name: Run unit tests + run: | + docker-compose -f test-docker-compose.yaml exec -T unit_test pytest -vs tests/unit_tests/ - name: Run test container run: |