Skip to content

Commit 5fd8d82

Browse files
Update - ci workflows
1 parent 3bd7080 commit 5fd8d82

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

.github/workflows/ci-build-tests.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -181,9 +181,9 @@ jobs:
181181
uses: actions/cache@v4.2.2
182182
with:
183183
path: ~/.cache/pip
184-
key: ${{ runner.os }}-pip-build-v1
184+
key: ${{ runner.os }}-pip-build-v1-${{ hashFiles('**/requirements.txt') }}
185185
restore-keys: |
186-
${{ runner.os }}-pip-build-
186+
${{ runner.os }}-pip-build-v1-
187187
188188
- name: Cache PlatformIO
189189
uses: actions/cache@v4.2.2
@@ -192,9 +192,9 @@ jobs:
192192
~/.platformio
193193
.pio/build
194194
.pio/libdeps
195-
key: ${{ runner.os }}-pio-build-v1
195+
key: ${{ runner.os }}-pio-build-v1-${{ hashFiles('**/lockfiles', '**/platformio.ini') }}
196196
restore-keys: |
197-
${{ runner.os }}-pio-build-
197+
${{ runner.os }}-pio-build-v1-
198198
199199
- name: Select Python 3.13
200200
uses: actions/setup-python@v5.4.0
@@ -204,7 +204,7 @@ jobs:
204204

205205
- name: Install PlatformIO
206206
run: |
207-
pip install -U pip wheel platformio
207+
python3 -m pip install -U pip wheel platformio
208208
pio upgrade --dev
209209
pio pkg update --global
210210

.github/workflows/ci-unit-tests.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ jobs:
5454
uses: actions/cache@v4.2.2
5555
with:
5656
path: ~/.cache/pip
57-
key: ${{ runner.os }}-pip-unit-v1
57+
key: ${{ runner.os }}-pip-unit-v1-${{ hashFiles('**/requirements.txt') }}
5858
restore-keys: |
59-
${{ runner.os }}-pip-unit-
59+
${{ runner.os }}-pip-unit-v1-
6060
6161
- name: Cache PlatformIO
6262
uses: actions/cache@v4.2.2
@@ -65,9 +65,9 @@ jobs:
6565
~/.platformio
6666
.pio/build
6767
.pio/libdeps
68-
key: ${{ runner.os }}-pio-tests-v1
68+
key: ${{ runner.os }}-pio-tests-v1-${{ hashFiles('**/lockfiles', '**/platformio.ini') }}
6969
restore-keys: |
70-
${{ runner.os }}-pio-tests-
70+
${{ runner.os }}-pio-tests-v1-
7171
7272
- name: Select Python 3.13
7373
uses: actions/setup-python@v5.4.0
@@ -77,7 +77,7 @@ jobs:
7777

7878
- name: Install PlatformIO
7979
run: |
80-
pip install -U pip wheel platformio
80+
python3 -m pip install -U pip wheel platformio
8181
pio upgrade --dev
8282
pio pkg update --global
8383

.github/workflows/ci-validate-boards.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ jobs:
3535
uses: actions/cache@v4.2.2
3636
with:
3737
path: ~/.cache/pip
38-
key: ${{ runner.os }}-pip-boards-v1
38+
key: ${{ runner.os }}-pip-boards-v1-${{ hashFiles('**/requirements.txt') }}
3939
restore-keys: |
40-
${{ runner.os }}-pip-boards-
40+
${{ runner.os }}-pip-boards-v1-
4141
4242
- name: Select Python 3.13
4343
uses: actions/setup-python@v5.4.0

.github/workflows/ci-validate-pins.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ jobs:
3636
uses: actions/cache@v4.2.2
3737
with:
3838
path: ~/.cache/pip
39-
key: ${{ runner.os }}-pip-pins-v1
39+
key: ${{ runner.os }}-pip-pins-v1-${{ hashFiles('**/requirements.txt') }}
4040
restore-keys: |
41-
${{ runner.os }}-pip-pins-
41+
${{ runner.os }}-pip-pins-v1-
4242
4343
- name: Select Python 3.13
4444
uses: actions/setup-python@v5.4.0

0 commit comments

Comments
 (0)