Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

👷 Add Python venv cache #1680

Closed
wants to merge 10 commits into from
12 changes: 12 additions & 0 deletions .github/workflows/test-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,25 @@ jobs:
- uses: "actions/setup-python@v2"
with:
python-version: "${{ matrix.python-version }}"

- uses: actions/[email protected]
id: cache-requirements
with:
path: ${{ env.pythonLocation }}
key: ${{ env.pythonLocation }}-${{ matrix.python-version }}-${{ hashFiles('requirements.txt', 'setup.py') }}
Copy link
Member

@tomchristie tomchristie Jun 16, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where have you gotten ${{ env.pythonLocation }} from?
(I mean, it looks neat, but I don't understand it)

I don't see anything about it mentioned in the docs, here.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


- name: "Install dependencies"
run: "scripts/install"
if: steps.cache-requirements.outputs.cache-hit != 'true'

- name: "Run linting checks"
run: "scripts/check"

- name: "Build package & docs"
run: "scripts/build"

- name: "Run tests"
run: "scripts/test"

- name: "Enforce coverage"
run: "scripts/coverage"