Skip to content

Commit 6bd40b9

Browse files
committed
trigger for all dev* branches, update to python setup @v5, streamline cache of pip
1 parent b512a9d commit 6bd40b9

File tree

1 file changed

+10
-38
lines changed

1 file changed

+10
-38
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
push:
77
branches:
88
- main
9-
- dev
9+
- "dev*" # Explicity include branches with "dev" in the name (e.g., dev, dev-feature, etc.)
1010
pull_request:
1111
branches:
1212
- main
@@ -34,17 +34,10 @@ jobs:
3434
- uses: actions/checkout@v4
3535

3636
- name: Set up Python 3.11
37-
uses: actions/setup-python@v3
37+
uses: actions/setup-python@v5
3838
with:
3939
python-version: "3.11"
40-
41-
- name: Cache pip dependencies
42-
uses: actions/cache@v3
43-
with:
44-
path: ~/.cache/pip
45-
key: ${{ runner.os }}-pip-${{ hashFiles('**/pyproject.toml') }}
46-
restore-keys: |
47-
${{ runner.os }}-pip-
40+
cache: "pip"
4841

4942
- name: Install dependencies
5043
run: |
@@ -100,17 +93,10 @@ jobs:
10093
uses: actions/checkout@v4
10194

10295
- name: Set up Python ${{ matrix.python-version }}
103-
uses: actions/setup-python@v3
96+
uses: actions/setup-python@v5
10497
with:
10598
python-version: ${{ matrix.python-version }}
106-
107-
- name: Cache pip dependencies
108-
uses: actions/cache@v3
109-
with:
110-
path: ~/.cache/pip
111-
key: ${{ runner.os }}-pip-${{ hashFiles('**/pyproject.toml') }}
112-
restore-keys: |
113-
${{ runner.os }}-pip-
99+
cache: "pip"
114100

115101
- name: Install dependencies
116102
run: |
@@ -153,7 +139,7 @@ jobs:
153139
- uses: actions/checkout@v4
154140

155141
- name: Set up Python 3.12
156-
uses: actions/setup-python@v3
142+
uses: actions/setup-python@v5
157143
with:
158144
python-version: "3.12"
159145

@@ -186,17 +172,10 @@ jobs:
186172
uses: actions/checkout@v4
187173

188174
- name: Set up Python 3.11
189-
uses: actions/setup-python@v3
175+
uses: actions/setup-python@v5
190176
with:
191177
python-version: "3.11"
192-
193-
- name: Cache pip dependencies
194-
uses: actions/cache@v3
195-
with:
196-
path: ~/.cache/pip
197-
key: ${{ runner.os }}-pip-${{ hashFiles('**/pyproject.toml') }}
198-
restore-keys: |
199-
${{ runner.os }}-pip-
178+
cache: "pip"
200179

201180
- name: Install dependencies
202181
run: |
@@ -353,17 +332,10 @@ jobs:
353332
uses: actions/checkout@v4
354333

355334
- name: Set up Python ${{ matrix.python-version }}
356-
uses: actions/setup-python@v3
335+
uses: actions/setup-python@v5
357336
with:
358337
python-version: ${{ matrix.python-version }}
359-
360-
- name: Cache pip dependencies
361-
uses: actions/cache@v3
362-
with:
363-
path: ~/.cache/pip
364-
key: ${{ runner.os }}-pip-${{ hashFiles('**/pyproject.toml') }}
365-
restore-keys: |
366-
${{ runner.os }}-pip-
338+
cache: "pip"
367339

368340
- name: Install dependencies
369341
run: |

0 commit comments

Comments
 (0)