diff options
Diffstat (limited to '.github/workflows/primer_run_main.yaml')
-rw-r--r-- | .github/workflows/primer_run_main.yaml | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/.github/workflows/primer_run_main.yaml b/.github/workflows/primer_run_main.yaml index f0aace5ad..4f89b9e6e 100644 --- a/.github/workflows/primer_run_main.yaml +++ b/.github/workflows/primer_run_main.yaml @@ -37,12 +37,6 @@ jobs: python-version: ${{ matrix.python-version }} check-latest: true - - name: Get latest astroid commit - id: get-astroid-sha - run: | - curl https://api.github.com/repos/PyCQA/astroid/commits | - python -c "import json, sys; print(json.load(sys.stdin)[0]['sha'])" > astroid_sha.txt - # Create a re-usable virtual environment - name: Create Python virtual environment cache id: cache-venv @@ -51,15 +45,15 @@ jobs: path: venv key: ${{ runner.os }}-${{ steps.python.outputs.python-version }}-${{ - env.KEY_PREFIX }}-${{ env.CACHE_VERSION }} + env.KEY_PREFIX }}-${{ env.CACHE_VERSION }}-${{ hashFiles('pyproject.toml', + 'requirements_test.txt', 'requirements_test_min.txt') }} - name: Create Python virtual environment + if: steps.cache-venv.outputs.cache-hit != 'true' run: | python -m venv venv . venv/bin/activate python -m pip install -U pip setuptools wheel pip install -U -r requirements_test.txt - # Use bleeding-edge astroid - pip install git+https://github.com/PyCQA/astroid.git # Cache primer packages - name: Get commit string |