From bd7e6f1c05040910c960fa2eb6ad14bafa0651bf Mon Sep 17 00:00:00 2001 From: Edoardo Rosa <6991986+notdodo@users.noreply.github.com> Date: Sat, 21 Dec 2024 13:07:44 +0100 Subject: [PATCH] enh: add .mypy_cache to action cache [#patch] (#114) --- .github/workflows/gitleaks.yml | 1 + .github/workflows/python-ci.yml | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/gitleaks.yml b/.github/workflows/gitleaks.yml index 41ff882..7793c80 100644 --- a/.github/workflows/gitleaks.yml +++ b/.github/workflows/gitleaks.yml @@ -37,4 +37,5 @@ jobs: # Comments works only when the workflow is called on `pull_request:` env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITLEAKS_ENABLE_UPLOAD_ARTIFACT: false GITLEAKS_VERSION: latest diff --git a/.github/workflows/python-ci.yml b/.github/workflows/python-ci.yml index 4814e61..8d3af62 100644 --- a/.github/workflows/python-ci.yml +++ b/.github/workflows/python-ci.yml @@ -63,7 +63,9 @@ jobs: uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0 with: - path: ${{ inputs.working-directory }}/.venv + path: | + ${{ inputs.working-directory }}/.venv + ${{ inputs.working-directory }}/.mypy_cache key: python-${{ inputs.python-version }}-poetry-${{ hashFiles('**/poetry.lock') }} - run: poetry install --no-root if: steps.cache-deps.outputs.cache-hit != 'true'