From 89f0c91677e397838e7d3120211644cc466f9f63 Mon Sep 17 00:00:00 2001 From: Wen Wei Tseng Date: Thu, 14 Dec 2023 08:26:35 +0000 Subject: [PATCH] pip cache --- .github/workflows/ci.yml | 3 ++- .github/workflows/linkcheck.yml | 3 ++- .github/workflows/update-manifest.yml | 2 ++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 510bb00..da61f56 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,6 +29,7 @@ jobs: uses: actions/checkout@v4 - name: Setup Python uses: actions/setup-python@v5 + id: cp with: python-version: ${{ env.PY_VER }} - name: Cache pip @@ -36,7 +37,7 @@ jobs: id: cache-pip with: path: ${{ env.pythonLocation }} - key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }} + key: ${{ runner.os }}-pip-${{ steps.cp.outputs.python-version }}-${{ hashFiles('requirements.txt') }} - name: Install python packages if: ${{ steps.cache-pip.outputs.cache-hit != 'true' }} run: pip install -r requirements.txt diff --git a/.github/workflows/linkcheck.yml b/.github/workflows/linkcheck.yml index b2e038b..329be9a 100644 --- a/.github/workflows/linkcheck.yml +++ b/.github/workflows/linkcheck.yml @@ -26,6 +26,7 @@ jobs: uses: actions/checkout@v4 - name: Setup Python uses: actions/setup-python@v5 + id: cp with: python-version: ${{ env.PY_VER }} - name: Cache pip @@ -33,7 +34,7 @@ jobs: id: cache-pip with: path: ${{ env.pythonLocation }} - key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }} + key: ${{ runner.os }}-pip-${{ steps.cp.outputs.python-version }}-${{ hashFiles('requirements.txt') }} - name: Install python packages if: ${{ steps.cache-pip.outputs.cache-hit != 'true' }} run: pip install -r requirements.txt diff --git a/.github/workflows/update-manifest.yml b/.github/workflows/update-manifest.yml index 45e51a6..05297b4 100644 --- a/.github/workflows/update-manifest.yml +++ b/.github/workflows/update-manifest.yml @@ -28,6 +28,8 @@ jobs: uses: actions/checkout@v4 - name: Setup Julia uses: julia-actions/setup-julia@v1 + with: + version: '1' - name: Update Julia dependencies env: JULIA_PKG_PRECOMPILE_AUTO: '0'