Skip to content

Commit 604200a

Browse files
committed
Stop using actions/cache@v4
1 parent b26bf6c commit 604200a

File tree

4 files changed

+6
-36
lines changed

4 files changed

+6
-36
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,7 @@ jobs:
1717
uses: actions/setup-python@v5
1818
with:
1919
python-version: ${{ matrix.python-version }}
20-
- uses: actions/cache@v4
21-
name: Configure pip caching
22-
with:
23-
path: ~/.cache/pip
24-
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
25-
restore-keys: |
26-
${{ runner.os }}-pip-
20+
cache: pip
2721
- name: Install dependencies
2822
run: |
2923
pip install -e '.[test]'
@@ -39,13 +33,7 @@ jobs:
3933
uses: actions/setup-python@v5
4034
with:
4135
python-version: '3.13'
42-
- uses: actions/cache@v4
43-
name: Configure pip caching
44-
with:
45-
path: ~/.cache/pip
46-
key: ${{ runner.os }}-publish-pip-${{ hashFiles('**/setup.py') }}
47-
restore-keys: |
48-
${{ runner.os }}-publish-pip-
36+
cache: pip
4937
- name: Install dependencies
5038
run: |
5139
pip install setuptools wheel twine

.github/workflows/spellcheck.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,7 @@ jobs:
1111
uses: actions/setup-python@v5
1212
with:
1313
python-version: "3.12"
14-
- uses: actions/cache@v4
15-
name: Configure pip caching
16-
with:
17-
path: ~/.cache/pip
18-
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
19-
restore-keys: |
20-
${{ runner.os }}-pip-
14+
cache: pip
2115
- name: Install dependencies
2216
run: |
2317
pip install -e '.[docs]'

.github/workflows/test-coverage.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,7 @@ jobs:
1717
uses: actions/setup-python@v5
1818
with:
1919
python-version: "3.11"
20-
- uses: actions/cache@v4
21-
name: Configure pip caching
22-
with:
23-
path: ~/.cache/pip
24-
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
25-
restore-keys: |
26-
${{ runner.os }}-pip-
20+
cache: pip
2721
- name: Install SpatiaLite
2822
run: sudo apt-get install libsqlite3-mod-spatialite
2923
- name: Install Python dependencies

.github/workflows/test.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ${{ matrix.os }}
1111
strategy:
1212
matrix:
13-
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14-dev", "3.14t-dev"]
13+
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
1414
numpy: [0, 1]
1515
os: [ubuntu-latest, macos-latest, windows-latest, macos-14]
1616
steps:
@@ -20,13 +20,7 @@ jobs:
2020
with:
2121
python-version: ${{ matrix.python-version }}
2222
allow-prereleases: true
23-
- uses: actions/cache@v4
24-
name: Configure pip caching
25-
with:
26-
path: ~/.cache/pip
27-
key: ${{ runner.os }}-pip-${{ hashFiles('setup.py') }}
28-
restore-keys: |
29-
${{ runner.os }}-pip-
23+
cache: pip
3024
- name: Install dependencies
3125
run: |
3226
pip install -e '.[test,mypy,flake8]'

0 commit comments

Comments
 (0)