From ee31b70307665ec11ec847d394f1ca4d433b2576 Mon Sep 17 00:00:00 2001 From: Marvin Vogt Date: Wed, 11 Sep 2024 11:07:39 +0200 Subject: [PATCH] Enable PDM cache in CI (#109) --- .github/workflows/build.yml | 2 ++ .github/workflows/test.yml | 1 + .github/workflows/verify.yml | 3 +++ 3 files changed, 6 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8e4172c..c9608da 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9970816..d31b230 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml index f7f4f43..bba35c9 100644 --- a/.github/workflows/verify.yml +++ b/.github/workflows/verify.yml @@ -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: @@ -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: @@ -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: