Skip to content

Commit

Permalink
👷 Add Lint to GitHub Actions outside of tests (#688)
Browse files Browse the repository at this point in the history
  • Loading branch information
tiangolo authored Mar 12, 2024
1 parent 87099ec commit 691443c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
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 "$@"

0 comments on commit 691443c

Please sign in to comment.