Skip to content

Commit

Permalink
feat(action): in the GitHub action, use simple setup-python pip cachi…
Browse files Browse the repository at this point in the history
…ng instead of actions/cache
  • Loading branch information
akaihola committed Jan 7, 2025
1 parent 2ba4277 commit 88be276
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,18 +53,7 @@ runs:
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Get pip cache dir
id: pip-cache
run: echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
shell: bash
- name: Cache Darker environment
uses: actions/cache@v4
with:
path: |
${{ github.action_path }}/.darker-env
${{ steps.pip-cache.outputs.dir }}
key: ${{ runner.os }}-darker-${{ inputs.version }}-lint-${{ inputs.lint }}
save-always: true
cache: 'pip'
- name: Install dependencies
run: |
pip install pip-requirements-parser
Expand Down

0 comments on commit 88be276

Please sign in to comment.