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