From a9f6f1563d420966bd9a9c194f02853d3977ca17 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Thu, 7 Oct 2021 22:32:08 +0200 Subject: [PATCH] ci: fix more order Signed-off-by: Jens Langhammer --- .github/workflows/ci-main.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci-main.yml b/.github/workflows/ci-main.yml index ab8f54d06..f40e291ae 100644 --- a/.github/workflows/ci-main.yml +++ b/.github/workflows/ci-main.yml @@ -142,15 +142,15 @@ jobs: with: path: ~/.local/share/virtualenvs key: ${{ runner.os }}-pipenv-v2-${{ hashFiles('**/Pipfile.lock') }} - - name: prepare - env: - INSTALL: ${{ steps.cache-pipenv.outputs.cache-hit }} - run: scripts/ci_prepare.sh - name: checkout stable run: | # Copy current, latest config to local cp authentik/lib/default.yml local.env.yml git checkout $(git describe --abbrev=0 --match 'version/*') + - name: prepare + env: + INSTALL: ${{ steps.cache-pipenv.outputs.cache-hit }} + run: scripts/ci_prepare.sh - name: run migrations to stable run: pipenv run python -m lifecycle.migrate - name: checkout current code @@ -159,6 +159,10 @@ jobs: git fetch git checkout ${{ steps.ev.outputs.branchName }} pipenv sync --dev + - name: prepare + env: + INSTALL: ${{ steps.cache-pipenv.outputs.cache-hit }} + run: scripts/ci_prepare.sh - name: migrate to latest run: pipenv run python -m lifecycle.migrate test-unittest: