Fix test-integration step
This commit is contained in:
parent
cca3b135cf
commit
69d190afe6
|
@ -8,4 +8,4 @@ done
|
||||||
|
|
||||||
echo "PostgreSQL started"
|
echo "PostgreSQL started"
|
||||||
|
|
||||||
python manage.py run -h 0.0.0.0
|
python src/api/main.py run -h 0.0.0.0
|
||||||
|
|
|
@ -2,8 +2,7 @@
|
||||||
|
|
||||||
|
|
||||||
if [ "${TEST_TARGET:-}" = "INTEGRATION" ]; then
|
if [ "${TEST_TARGET:-}" = "INTEGRATION" ]; then
|
||||||
# Execute your command here
|
usr/src/app/.venv/bin/gunicorn src.api.main:app --worker-class uvicorn.workers.UvicornWorker
|
||||||
/usr/src/app/.venv/bin/gunicorn manage:app
|
|
||||||
else
|
else
|
||||||
## pytest
|
## pytest
|
||||||
python -m pytest "src/tests" --junitxml=report.xml
|
python -m pytest "src/tests" --junitxml=report.xml
|
||||||
|
|
Loading…
Reference in New Issue