Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ jobs:
- run: docker compose build
- run: docker compose down -v --remove-orphans
- run: docker compose up -d
- name: Docker Compose run tests
- name: Lint
run: docker compose exec -T backend bash /app/scripts/lint.sh
- name: Run tests
run: docker compose exec -T backend bash /app/tests-start.sh "Coverage for ${{ github.sha }}"
- run: docker compose down -v --remove-orphans
- name: Store coverage files
Expand Down
2 changes: 2 additions & 0 deletions backend/backend.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ RUN bash -c "if [ $INSTALL_DEV == 'true' ] ; then poetry install --no-root ; els

ENV PYTHONPATH=/app

COPY ./scripts/ /app/

COPY ./alembic.ini /app/

COPY ./prestart.sh /app/
Expand Down
1 change: 0 additions & 1 deletion backend/tests-start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@ set -x

python /app/app/tests_pre_start.py

bash ./scripts/lint.sh
bash ./scripts/test.sh "$@"