Skip to content

Commit 28b8245

Browse files
authored
update the github actions to use modern python caching (#84)
1 parent 4c0cdee commit 28b8245

File tree

2 files changed

+3
-33
lines changed

2 files changed

+3
-33
lines changed

.github/workflows/codespell.yml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,11 @@ jobs:
1414

1515
steps:
1616
- uses: actions/checkout@v6
17-
with:
18-
fetch-depth: 0
1917

2018
- name: Setup Python
2119
uses: actions/setup-python@v6
2220
with:
23-
python-version: '3.10'
24-
25-
- name: Cache pip
26-
uses: actions/cache@v4
27-
with:
28-
# this path is specific to Ubuntu
29-
path: ~/.cache/pip
30-
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
31-
restore-keys: |
32-
${{ runner.os }}-pip-
21+
python-version: '3.14'
3322

3423
- name: Install dependencies
3524
run: pip install codespell

.github/workflows/gh-pages.yml

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on:
44
push:
55
branches:
66
- main
7-
- development
87

98
jobs:
109
deploy:
@@ -19,25 +18,13 @@ jobs:
1918
- name: Setup Python
2019
uses: actions/setup-python@v6
2120
with:
22-
python-version: '3.10'
21+
python-version: '3.14'
22+
cache: "pip"
2323

2424
- name: Upgrade pip
2525
run: |
26-
# install pip=>20.1 to use "pip cache dir"
2726
python3 -m pip install --upgrade pip
2827
29-
- name: Get pip cache dir
30-
id: pip-cache
31-
run: echo "::set-output name=dir::$(pip cache dir)"
32-
33-
- name: Cache dependencies
34-
uses: actions/cache@v4
35-
with:
36-
path: ${{ steps.pip-cache.outputs.dir }}
37-
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
38-
restore-keys: |
39-
${{ runner.os }}-pip-
40-
4128
- name: Install dependencies
4229
run: python3 -m pip install -r ./requirements.txt
4330

@@ -47,12 +34,6 @@ jobs:
4734
GITHUB_BRANCH: 'main'
4835
run: ./deploy_docs_action.sh
4936

50-
- name: Build docs
51-
if: ${{ endsWith(github.ref, 'development') }}
52-
env:
53-
GITHUB_BRANCH: 'development'
54-
run: ./deploy_docs_action.sh
55-
5637
- name: Deploy
5738
uses: peaceiris/actions-gh-pages@v4
5839
with:

0 commit comments

Comments
 (0)