From a116ad5bebbb98f3252bfe85d244c5d0ebb9c02b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Tue, 12 Mar 2024 16:09:27 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Add=20Lint=20to=20GitHub=20Actio?= =?UTF-8?q?ns=20outside=20of=20tests=20(#688)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/test.yml | 4 +++- backend/backend.dockerfile | 2 ++ backend/tests-start.sh | 1 - 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3c4c53fb8af..03e4ba1ef62 100644 --- a/.github/workflows/test.yml +++ b/.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 diff --git a/backend/backend.dockerfile b/backend/backend.dockerfile index 44ff6ffacd9..c3187aeb283 100644 --- a/backend/backend.dockerfile +++ b/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/ diff --git a/backend/tests-start.sh b/backend/tests-start.sh index cbc7d46d500..e35150c7ae7 100644 --- a/backend/tests-start.sh +++ b/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 "$@"