-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: script for tests inside docker container
- Loading branch information
1 parent
01d9630
commit 8ee9e45
Showing
3 changed files
with
16 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/usr/bin/env bash | ||
export UID=$(id -u) | ||
|
||
docker compose -f docker-compose.test.yaml down | ||
docker compose -f docker-compose.test.yaml up -d --build --wait | ||
|
||
docker exec tds /bin/bash -c " | ||
cd /tds && | ||
/poetry_user_install_dev.bash && | ||
pytest -svv --cov=transcriptomics_data_service --cov-branch && | ||
coverage html | ||
" | ||
|
||
docker compose -f docker-compose.test.yaml down | ||
|
||
docker rmi transcriptomics_data_service-tds:latest |