Skip to content

Commit

Permalink
Attempt to improve caching
Browse files Browse the repository at this point in the history
  • Loading branch information
znicholls committed Aug 21, 2024
1 parent 5a71836 commit c3466bf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,18 @@ inputs:
runs:
using: "composite"
steps:
- name: Write file with install flags
run: |
echo "${{ inputs.pdm-dependency-install-flags }}" > pdm-install-flags.txt
- name: Setup PDM
id: setup-pdm
uses: pdm-project/[email protected]
with:
python-version: ${{ inputs.python-version }}
cache: true
cache-dependency-path: |
./pdm.lock
./pdm-install-flags.txt
- name: Install dependencies
shell: bash
if: ${{ (inputs.run-pdm-install == 'true') && (steps.setup-pdm.outputs.cache-hit != 'true') }}
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# pdm stuff
.pdm-python

# CI stuff
pdm-install-flags.txt

# licence check
licence-check.txt

Expand Down

0 comments on commit c3466bf

Please sign in to comment.