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 support for Python package caching #102

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/workflows/test_tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,3 +130,10 @@ jobs:
cache-path: |
a/
cache-key: cache-${{ github.run_id }}

test_no_python_cache:
uses: ./.github/workflows/tox.yml
with:
python-cache: ''
envs: |
- linux: py310
6 changes: 6 additions & 0 deletions .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,11 @@ on:
required: false
default: true
type: boolean
python-cache:
description: Package manager to cache. Passed to actions/setup-python. Set to an emtpy string for no caching.
required: false
default: 'pip'
type: string
secrets:
CODECOV_TOKEN:
description: Codecov upload token (for private repositories only)
Expand Down Expand Up @@ -157,6 +162,7 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python_version }}
cache: ${{ matrix.python-cache }}

- name: Setup conda
if: ${{ matrix.conda == 'true' }}
Expand Down