From 1385d0feb9e47b8fbc11819b9da53c3484e7cbbd Mon Sep 17 00:00:00 2001 From: Michael Zingale Date: Wed, 11 Feb 2026 14:39:39 -0500 Subject: [PATCH] update the github actions to use modern python caching --- .github/workflows/codespell.yml | 13 +------------ .github/workflows/gh-pages.yml | 23 ++--------------------- 2 files changed, 3 insertions(+), 33 deletions(-) diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml index cf9432e..b72fea7 100644 --- a/.github/workflows/codespell.yml +++ b/.github/workflows/codespell.yml @@ -14,22 +14,11 @@ jobs: steps: - uses: actions/checkout@v6 - with: - fetch-depth: 0 - name: Setup Python uses: actions/setup-python@v6 with: - python-version: '3.10' - - - name: Cache pip - uses: actions/cache@v4 - with: - # this path is specific to Ubuntu - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- + python-version: '3.14' - name: Install dependencies run: pip install codespell diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 8e03c05..4cc39b8 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -4,7 +4,6 @@ on: push: branches: - main - - development jobs: deploy: @@ -19,25 +18,13 @@ jobs: - name: Setup Python uses: actions/setup-python@v6 with: - python-version: '3.10' + python-version: '3.14' + cache: "pip" - name: Upgrade pip run: | - # install pip=>20.1 to use "pip cache dir" python3 -m pip install --upgrade pip - - name: Get pip cache dir - id: pip-cache - run: echo "::set-output name=dir::$(pip cache dir)" - - - name: Cache dependencies - uses: actions/cache@v4 - with: - path: ${{ steps.pip-cache.outputs.dir }} - key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- - - name: Install dependencies run: python3 -m pip install -r ./requirements.txt @@ -47,12 +34,6 @@ jobs: GITHUB_BRANCH: 'main' run: ./deploy_docs_action.sh - - name: Build docs - if: ${{ endsWith(github.ref, 'development') }} - env: - GITHUB_BRANCH: 'development' - run: ./deploy_docs_action.sh - - name: Deploy uses: peaceiris/actions-gh-pages@v4 with: