Sebastián Ramírez
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with
5 additions and
2 deletions
-
.github/workflows/test.yml
-
backend/backend.dockerfile
-
backend/tests-start.sh
|
|
@ -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 |
|
|
|
|
|
@ -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/ |
|
|
|
|
|
@ -4,5 +4,4 @@ set -x |
|
|
|
|
|
|
|
python /app/app/tests_pre_start.py |
|
|
|
|
|
|
|
bash ./scripts/lint.sh |
|
|
|
bash ./scripts/test.sh "$@" |
|
|
|