From 01c5235e82c1240802bbad54cb65faa7ee554096 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Wed, 9 Jun 2021 15:50:32 +0200 Subject: [PATCH] ci: use bootstrap for testing Signed-off-by: Jens Langhammer --- .github/workflows/release.yml | 2 +- lifecycle/bootstrap.sh | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d29e94782..c4dd6bcbf 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -122,7 +122,7 @@ jobs: docker-compose pull -q docker-compose up --no-start docker-compose start postgresql redis - docker-compose run -u authentik --entrypoint /bin/bash server -c "pip install --no-cache -r requirements-dev.txt && ./manage.py test authentik" + docker-compose run -u root server test sentry-release: if: ${{ github.event_name == 'release' }} needs: diff --git a/lifecycle/bootstrap.sh b/lifecycle/bootstrap.sh index a8641a7e5..b002dbe55 100755 --- a/lifecycle/bootstrap.sh +++ b/lifecycle/bootstrap.sh @@ -32,6 +32,9 @@ elif [[ "$1" == "restore" ]]; then python -m manage dbrestore ${@:2} elif [[ "$1" == "bash" ]]; then /bin/bash +elif [[ "$1" == "test" ]]; then + pip install --no-cache -r requirements-dev.txt + check_if_root "python -m manage test authentik" else python -m manage "$@" fi