diff --git a/.github/workflows/primer_run_main.yaml b/.github/workflows/primer_run_main.yaml index 03f64c40523..1c697a7eca2 100644 --- a/.github/workflows/primer_run_main.yaml +++ b/.github/workflows/primer_run_main.yaml @@ -78,7 +78,10 @@ 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' || (. venv/bin/activate && ! + python -m 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 80aa16b311d..86917f3299c 100644 --- a/.github/workflows/primer_run_pr.yaml +++ b/.github/workflows/primer_run_pr.yaml @@ -147,7 +147,10 @@ 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' || (. venv/bin/activate && ! + python -m pip show colorama) run: | . venv/bin/activate python tests/primer/__main__.py prepare --clone