diff --git a/.github/workflows/primer_run_main.yaml b/.github/workflows/primer_run_main.yaml index 03f64c4052..2f563ce9db 100644 --- a/.github/workflows/primer_run_main.yaml +++ b/.github/workflows/primer_run_main.yaml @@ -78,7 +78,8 @@ jobs: ${{ runner.os }}-${{ matrix.python-version }}-${{ steps.commitstring.outputs.commitstring }}-primer - name: Regenerate cache - if: steps.cache-projects.outputs.cache-hit != 'true' + # Presence of colorama is a heuristic for the env having all packages + if: steps.cache-projects.outputs.cache-hit != 'true' || ! pip show colorama run: | . venv/bin/activate python tests/primer/__main__.py prepare --clone diff --git a/.github/workflows/primer_run_pr.yaml b/.github/workflows/primer_run_pr.yaml index 80aa16b311..a86e003a9d 100644 --- a/.github/workflows/primer_run_pr.yaml +++ b/.github/workflows/primer_run_pr.yaml @@ -147,7 +147,8 @@ jobs: ${{ runner.os }}-${{ matrix.python-version }}-${{ steps.commitstring.outputs.commitstring }}-primer - name: Regenerate cache - if: steps.cache-projects.outputs.cache-hit != 'true' + # Presence of colorama is a heuristic for the env having all packages + if: steps.cache-projects.outputs.cache-hit != 'true' || ! pip show colorama run: | . venv/bin/activate python tests/primer/__main__.py prepare --clone