Skip to content

Commit dfb2dbe

Browse files
committed
Update GitHub Actions workflow cache configuration
1 parent 076c1a0 commit dfb2dbe

File tree

5 files changed

+12
-36
lines changed

5 files changed

+12
-36
lines changed

.github/workflows/publish.yml

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,8 @@ 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
21+
cache-dependency-path: setup.py
2722
- name: Install dependencies
2823
run: |
2924
pip install -e '.[test]'
@@ -39,13 +34,8 @@ jobs:
3934
uses: actions/setup-python@v5
4035
with:
4136
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-
37+
cache: pip
38+
cache-dependency-path: setup.py
4939
- name: Install dependencies
5040
run: |
5141
pip install setuptools wheel twine

.github/workflows/spellcheck.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,8 @@ 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
15+
cache-dependency-path: setup.py
2116
- name: Install dependencies
2217
run: |
2318
pip install -e '.[docs]'

.github/workflows/test-coverage.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,8 @@ 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
21+
cache-dependency-path: setup.py
2722
- name: Install SpatiaLite
2823
run: sudo apt-get install libsqlite3-mod-spatialite
2924
- name: Install Python dependencies

.github/workflows/test-sqlite-support.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626
allow-prereleases: true
2727
cache: pip
2828
cache-dependency-path: setup.py
29+
cache-dependency-path: setup.py
2930
- name: Set up SQLite ${{ matrix.sqlite-version }}
3031
uses: asg017/sqlite-versions@71ea0de37ae739c33e447af91ba71dda8fcf22e6
3132
with:

.github/workflows/test.yml

Lines changed: 3 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,8 @@ 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
24+
cache-dependency-path: setup.py
3025
- name: Install dependencies
3126
run: |
3227
pip install -e '.[test,mypy,flake8]'

0 commit comments

Comments
 (0)