33
33
- uses : actions/checkout@v3
34
34
with :
35
35
submodules : false
36
- fetch-depth : 1
36
+ fetch-depth : 0
37
37
- name : Set up Python 3
38
38
uses : actions/setup-python@v4
39
39
with :
@@ -125,20 +125,30 @@ jobs:
125
125
[ -z "$AWS_ACCESS_KEY_ID" ] || aws s3 cp mpy-cross/mpy-cross.static-raspbian s3://adafruit-circuit-python/bin/mpy-cross/mpy-cross.static-raspbian-${{ env.CP_VERSION }} --no-progress --region us-east-1
126
126
[ -z "$AWS_ACCESS_KEY_ID" ] || aws s3 cp mpy-cross/mpy-cross.static s3://adafruit-circuit-python/bin/mpy-cross/mpy-cross.static-amd64-linux-${{ env.CP_VERSION }} --no-progress --region us-east-1
127
127
[ -z "$AWS_ACCESS_KEY_ID" ] || aws s3 cp mpy-cross/mpy-cross.static.exe s3://adafruit-circuit-python/bin/mpy-cross/mpy-cross.static-x64-windows-${{ env.CP_VERSION }}.exe --no-progress --region us-east-1
128
- - name : " Get changes"
128
+ - name : Get last commit with checks
129
+ id : get-last-commit-with-checks
130
+ if : github.event_name == 'pull_request'
131
+ working-directory : tools
132
+ env :
133
+ REPO : ${{ github.repository }}
134
+ PULL : ${{ github.event.number }}
135
+ GITHUB_TOKEN : ${{ github.token }}
136
+ EXCLUDE_COMMIT : ${{ github.event.after }}
137
+ run : python3 -u ci_changes_per_commit.py
138
+ - name : Get changes
139
+ id : get-changes
129
140
if : github.event_name == 'pull_request'
130
- uses : dorny/paths-filter@v2
131
- id : filter
132
- with :
133
- list-files : json
134
- filters : |
135
- changed:
136
- - '**'
137
- - name : " Set matrix"
141
+ uses :
tj-actions/[email protected]
142
+ with :
143
+ json : true
144
+ sha : ${{ steps.get-last-commit-with-checks.outputs.commit && github.event.after }}
145
+ base_sha : ${{ steps.get-last-commit-with-checks.outputs.commit }}
146
+ - name : Set matrix
138
147
id : set-matrix
139
148
working-directory : tools
140
149
env :
141
- CHANGED_FILES : ${{ steps.filter.outputs.changed_files }}
150
+ CHANGED_FILES : ${{ steps.get-changes.outputs.all_changed_and_modified_files }}
151
+ LAST_FAILED_JOBS : ${{ steps.get-last-commit-with-checks.outputs.checkruns }}
142
152
run : python3 -u ci_set_matrix.py
143
153
144
154
@@ -156,7 +166,7 @@ jobs:
156
166
- name : Set up Python 3
157
167
uses : actions/setup-python@v4
158
168
with :
159
- python-version : " 3.x "
169
+ python-version : " 3.10 "
160
170
- name : Get CP deps
161
171
run : python tools/ci_fetch_deps.py mpy-cross-mac ${{ github.sha }}
162
172
- name : CircuitPython version
@@ -220,7 +230,7 @@ jobs:
220
230
- name : Set up Python 3
221
231
uses : actions/setup-python@v4
222
232
with :
223
- python-version : " 3.x "
233
+ python-version : " 3.10 "
224
234
- name : Install dependencies
225
235
run : |
226
236
sudo apt-get update
@@ -278,7 +288,7 @@ jobs:
278
288
- name : Set up Python 3
279
289
uses : actions/setup-python@v4
280
290
with :
281
- python-version : " 3.x "
291
+ python-version : " 3.10 "
282
292
- uses : actions/checkout@v3
283
293
with :
284
294
submodules : false
@@ -331,7 +341,7 @@ jobs:
331
341
- name : Set up Python 3
332
342
uses : actions/setup-python@v4
333
343
with :
334
- python-version : " 3.x "
344
+ python-version : " 3.10 "
335
345
- uses : actions/checkout@v3
336
346
with :
337
347
submodules : false
@@ -384,7 +394,7 @@ jobs:
384
394
id : py3
385
395
uses : actions/setup-python@v4
386
396
with :
387
- python-version : " 3.x "
397
+ python-version : " 3.10 "
388
398
- uses : actions/checkout@v3
389
399
with :
390
400
submodules : false
@@ -473,7 +483,7 @@ jobs:
473
483
- name : Set up Python 3
474
484
uses : actions/setup-python@v4
475
485
with :
476
- python-version : " 3.x "
486
+ python-version : " 3.10 "
477
487
- uses : actions/checkout@v3
478
488
with :
479
489
submodules : false
0 commit comments