Skip to content

Commit

Permalink
Enable PDM cache in CI (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
SRv6d authored Sep 11, 2024
1 parent ec6bcf2 commit ee31b70
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: pdm-project/setup-pdm@v4
with:
cache: true
- name: Build
run: pdm build
- name: Attest Build Provenance
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
- uses: pdm-project/setup-pdm@v4
with:
python-version: ${{ matrix.python_version }}
cache: true
- run: pip3 install nox
- run: nox -s test
- name: Upload coverage reports to Codecov
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
- uses: pdm-project/setup-pdm@v4
with:
python-version: ${{ env.PYTHON_VERSION }}
cache: true
- run: pip3 install nox
- run: nox -s lint
check-lockfile:
Expand All @@ -25,6 +26,7 @@ jobs:
- uses: pdm-project/setup-pdm@v4
with:
python-version: ${{ env.PYTHON_VERSION }}
cache: true
- run: pip3 install nox
- run: nox -s lockfile
type-check:
Expand All @@ -34,6 +36,7 @@ jobs:
- uses: pdm-project/setup-pdm@v4
with:
python-version: ${{ env.PYTHON_VERSION }}
cache: true
- run: pip3 install nox
- run: nox -s mypy
spellcheck:
Expand Down

0 comments on commit ee31b70

Please sign in to comment.