From 7614555f34b0851f353726468bcde2729a86062d Mon Sep 17 00:00:00 2001 From: Lucas Saavedra Vaz <32426024+lucasssvaz@users.noreply.github.com> Date: Mon, 27 May 2024 12:38:43 -0300 Subject: [PATCH] fix(caching): Fix python caching --- .github/workflows/docs_build.yml | 2 ++ .github/workflows/docs_deploy.yml | 2 ++ .github/workflows/hw.yml | 1 + .github/workflows/qemu.yml | 1 + .github/workflows/wokwi.yml | 1 + 5 files changed, 7 insertions(+) diff --git a/.github/workflows/docs_build.yml b/.github/workflows/docs_build.yml index d38cfaffe4d..568813729d4 100644 --- a/.github/workflows/docs_build.yml +++ b/.github/workflows/docs_build.yml @@ -27,6 +27,8 @@ jobs: submodules: true - uses: actions/setup-python@v5 with: + cache-dependency-path: docs/requirements.txt + cache: 'pip' python-version: '3.10' - name: Build run: | diff --git a/.github/workflows/docs_deploy.yml b/.github/workflows/docs_deploy.yml index 07dc03ba547..89c7eb9f516 100644 --- a/.github/workflows/docs_deploy.yml +++ b/.github/workflows/docs_deploy.yml @@ -25,6 +25,8 @@ jobs: submodules: true - uses: actions/setup-python@v5 with: + cache-dependency-path: docs/requirements.txt + cache: 'pip' python-version: '3.10' - name: Deploy Documentation env: diff --git a/.github/workflows/hw.yml b/.github/workflows/hw.yml index 66382e850a9..743d8d94d03 100644 --- a/.github/workflows/hw.yml +++ b/.github/workflows/hw.yml @@ -58,6 +58,7 @@ jobs: - uses: actions/setup-python@v5 if: steps.check-tests.outputs.enabled == 'true' with: + cache-dependency-path: tests/requirements.txt cache: 'pip' python-version: '3.10.1' diff --git a/.github/workflows/qemu.yml b/.github/workflows/qemu.yml index f6582fa3e2f..bb211e3801a 100644 --- a/.github/workflows/qemu.yml +++ b/.github/workflows/qemu.yml @@ -54,6 +54,7 @@ jobs: - uses: actions/setup-python@v5 if: steps.check-tests.outputs.enabled == 'true' with: + cache-dependency-path: tests/requirements.txt cache: 'pip' python-version: '3.x' diff --git a/.github/workflows/wokwi.yml b/.github/workflows/wokwi.yml index 608d2abdc69..89729c9d506 100644 --- a/.github/workflows/wokwi.yml +++ b/.github/workflows/wokwi.yml @@ -63,6 +63,7 @@ jobs: - uses: actions/setup-python@v5 if: steps.check-tests.outputs.enabled == 'true' with: + cache-dependency-path: tests/requirements.txt cache: 'pip' python-version: '3.x'