From b76633c1c509036e6aca3d4171a64a5ed3652b8d Mon Sep 17 00:00:00 2001 From: Alexis Date: Mon, 19 Feb 2024 11:19:11 +0100 Subject: [PATCH] try to force exit code 0 in startup-docker-compose-test createsuperuser step to avoid exit code 137 --- .github/workflows/startup-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/startup-tests.yml b/.github/workflows/startup-tests.yml index 560c20539..c904ee70a 100644 --- a/.github/workflows/startup-tests.yml +++ b/.github/workflows/startup-tests.yml @@ -119,7 +119,7 @@ jobs: - name: Config the Docker app run: | docker compose exec backend python manage.py migrate - docker compose exec backend /bin/bash -c "DJANGO_SUPERUSER_EMAIL=admin@tests.com DJANGO_SUPERUSER_PASSWORD=1234 python manage.py createsuperuser --noinput" + docker compose exec backend /bin/bash -c "DJANGO_SUPERUSER_EMAIL=admin@tests.com DJANGO_SUPERUSER_PASSWORD=1234 python manage.py createsuperuser --noinput && exit 0" - name: Run tests working-directory: ${{ env.working-directory }} run: npx playwright test tests/functional/startup.test.ts