Skip to content

Commit

Permalink
Add enable-cache as an input argument
Browse files Browse the repository at this point in the history
Signed-off-by: Samet Akcay <[email protected]>
  • Loading branch information
samet-akcay committed Dec 12, 2024
1 parent 4b9f6fb commit f4646cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/actions/pytest/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ runs:
uses: actions/setup-python@v5
with:
python-version: ${{ inputs.python-version }}
cache: ${{ inputs.enable-cache == 'true' }}
cache: ${{ inputs.enable-cache == 'true' && 'pip' || 'none' }}
cache-dependency-path: pyproject.toml

# Create and configure virtual environment
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/_reusable-test-suite.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ on:
default: 10
enable-cache:
description: "Enable pip caching"
type: boolean
default: true
type: string
default: "true"
secrets:
codecov-token:
required: false
Expand Down

0 comments on commit f4646cd

Please sign in to comment.