Skip to content

Commit

Permalink
[TO SQUASH] move unit tests to test.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Ricardo Cañuelo <[email protected]>
  • Loading branch information
Ricardo Cañuelo committed Jan 8, 2024
1 parent f188b2a commit 8831145
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down

0 comments on commit 8831145

Please sign in to comment.