Browse Source

👷 Add Lint to GitHub Actions outside of tests (#688)

pull/13907/head
Sebastián Ramírez 1 year ago
committed by GitHub
parent
commit
691443c7cd
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      .github/workflows/test.yml
  2. 2
      backend/backend.dockerfile
  3. 1
      backend/tests-start.sh

4
.github/workflows/test.yml

@ -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

2
backend/backend.dockerfile

@ -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/

1
backend/tests-start.sh

@ -4,5 +4,4 @@ set -x
python /app/app/tests_pre_start.py
bash ./scripts/lint.sh
bash ./scripts/test.sh "$@"

Loading…
Cancel
Save