3333 - uses : actions/checkout@v3
3434 with :
3535 submodules : false
36- fetch-depth : 1
36+ fetch-depth : 0
3737 - name : Set up Python 3
3838 uses : actions/setup-python@v4
3939 with :
@@ -125,20 +125,30 @@ jobs:
125125 [ -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
126126 [ -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
127127 [ -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
129140 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/changed-files@v34.5.3
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
138147 id : set-matrix
139148 working-directory : tools
140149 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 }}
142152 run : python3 -u ci_set_matrix.py
143153
144154
@@ -156,7 +166,7 @@ jobs:
156166 - name : Set up Python 3
157167 uses : actions/setup-python@v4
158168 with :
159- python-version : " 3.x "
169+ python-version : " 3.10 "
160170 - name : Get CP deps
161171 run : python tools/ci_fetch_deps.py mpy-cross-mac ${{ github.sha }}
162172 - name : CircuitPython version
@@ -220,7 +230,7 @@ jobs:
220230 - name : Set up Python 3
221231 uses : actions/setup-python@v4
222232 with :
223- python-version : " 3.x "
233+ python-version : " 3.10 "
224234 - name : Install dependencies
225235 run : |
226236 sudo apt-get update
@@ -278,7 +288,7 @@ jobs:
278288 - name : Set up Python 3
279289 uses : actions/setup-python@v4
280290 with :
281- python-version : " 3.x "
291+ python-version : " 3.10 "
282292 - uses : actions/checkout@v3
283293 with :
284294 submodules : false
@@ -331,7 +341,7 @@ jobs:
331341 - name : Set up Python 3
332342 uses : actions/setup-python@v4
333343 with :
334- python-version : " 3.x "
344+ python-version : " 3.10 "
335345 - uses : actions/checkout@v3
336346 with :
337347 submodules : false
@@ -384,7 +394,7 @@ jobs:
384394 id : py3
385395 uses : actions/setup-python@v4
386396 with :
387- python-version : " 3.x "
397+ python-version : " 3.10 "
388398 - uses : actions/checkout@v3
389399 with :
390400 submodules : false
@@ -473,7 +483,7 @@ jobs:
473483 - name : Set up Python 3
474484 uses : actions/setup-python@v4
475485 with :
476- python-version : " 3.x "
486+ python-version : " 3.10 "
477487 - uses : actions/checkout@v3
478488 with :
479489 submodules : false
0 commit comments