From c106d999e2255ec8f334a945a0d8ad33a86e9566 Mon Sep 17 00:00:00 2001 From: the-forest-tree Date: Thu, 28 Sep 2023 14:54:45 +0000 Subject: [PATCH] ci: use same steps order for connectors-integration-tests job trying to solve nox command not found error --- .github/workflows/hrflow_connectors.yml | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/.github/workflows/hrflow_connectors.yml b/.github/workflows/hrflow_connectors.yml index acb6c9909..ad1480755 100644 --- a/.github/workflows/hrflow_connectors.yml +++ b/.github/workflows/hrflow_connectors.yml @@ -112,7 +112,9 @@ jobs: ref: ${{ github.event.pull_request.head.sha }} lfs: true - - uses: excitedleigh/setup-nox@v2.0.0 + - uses: actions/setup-python@v2 + with: + python-version: ${{ env.BASELINE_PYTHON_VERSION }} - name: Load cached Poetry installation id: cached-poetry-install @@ -121,13 +123,6 @@ jobs: path: ~/.local key: poetry-${{ env.POETRY_VERSION }} - - name: Load cached nox venvs - id: cached-nox-venvs - uses: actions/cache@v2 - with: - path: ${{ env.NOX_ENV_DIR }} - key: nox-venvs-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }} - - name: Add poetry to PATH run: export PATH="$HOME/.local/bin:$PATH" @@ -138,6 +133,15 @@ jobs: path: .venv key: venv-${{ runner.os }}-${{ env.BASELINE_PYTHON_VERSION }}-${{ hashFiles('**/poetry.lock') }} + - uses: excitedleigh/setup-nox@v2.0.0 + + - name: Load cached nox venvs + id: cached-nox-venvs + uses: actions/cache@v2 + with: + path: ${{ env.NOX_ENV_DIR }} + key: nox-venvs-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }} + - name: Configure AWS Credentials uses: aws-actions/configure-aws-credentials@v2 with: