14
14
15
15
jobs :
16
16
test :
17
- runs-on : ubuntu-18 .04
17
+ runs-on : ubuntu-20 .04
18
18
steps :
19
19
- name : Dump GitHub context
20
20
env :
35
35
python-version : 3.8
36
36
- name : Install deps
37
37
run : |
38
+ sudo apt-get update
38
39
sudo apt-get install -y eatmydata
39
40
sudo eatmydata apt-get install -y gettext librsvg2-bin mingw-w64 latexmk texlive-fonts-recommended texlive-latex-recommended texlive-latex-extra
40
- pip install requests sh click setuptools cpp-coveralls "Sphinx<4" sphinx-rtd-theme recommonmark sphinx-autoapi sphinxcontrib-svg2pdfconverter polib pyyaml astroid isort black awscli
41
+ pip install requests sh click setuptools cpp-coveralls "Sphinx<4" sphinx-rtd-theme recommonmark sphinx-autoapi sphinxcontrib-svg2pdfconverter polib pyyaml astroid isort black awscli mypy
41
42
- name : Versions
42
43
run : |
43
44
gcc --version
67
68
- name : mpy Tests
68
69
run : MICROPY_CPYTHON3=python3.8 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests -j1 --via-mpy -d basics float
69
70
working-directory : tests
70
- - name : Stubs
71
- run : make stubs -j2
71
+ - name : Build and Validate Stubs
72
+ run : make check- stubs -j2
72
73
- uses : actions/upload-artifact@v2
73
74
with :
74
75
name : stubs
@@ -111,12 +112,15 @@ jobs:
111
112
with :
112
113
name : mpy-cross.static-x64-windows
113
114
path : mpy-cross/mpy-cross.static.exe
114
- - name : Upload mpy-cross builds to S3
115
+ - name : Upload stubs and mpy-cross builds to S3
115
116
run : |
116
117
[ -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
117
118
[ -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
118
119
[ -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
120
+ zip -9r circuitpython-stubs.zip circuitpython-stubs
121
+ [ -z "$AWS_ACCESS_KEY_ID" ] || aws s3 cp circuitpython-stubs.zip s3://adafruit-circuit-python/bin/stubs/circuitpython-stubs-${{ env.CP_VERSION }}.zip --no-progress --region us-east-1
119
122
env :
123
+ AWS_PAGER : ' '
120
124
AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
121
125
AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
122
126
if : github.event_name == 'push' || (github.event_name == 'release' && (github.event.action == 'published' || github.event.action == 'rerequested'))
@@ -157,19 +161,21 @@ jobs:
157
161
run : |
158
162
[ -z "$AWS_ACCESS_KEY_ID" ] || aws s3 cp mpy-cross/mpy-cross s3://adafruit-circuit-python/bin/mpy-cross/mpy-cross-macos-catalina-${{ env.CP_VERSION }} --no-progress --region us-east-1
159
163
env :
164
+ AWS_PAGER : ' '
160
165
AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
161
166
AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
162
167
if : github.event_name == 'push' || (github.event_name == 'release' && (github.event.action == 'published' || github.event.action == 'rerequested'))
163
168
164
169
165
170
build-arm :
166
- runs-on : ubuntu-18 .04
171
+ runs-on : ubuntu-20 .04
167
172
needs : test
168
173
strategy :
169
174
fail-fast : false
170
175
matrix :
171
176
board :
172
177
- " 8086_commander"
178
+ - " ADM_B_NRF52840_1"
173
179
- " TG-Watch02A"
174
180
- " aloriumtech_evo_m51"
175
181
- " aramcon_badge_2019"
@@ -193,6 +199,8 @@ jobs:
193
199
- " circuitplayground_express_displayio"
194
200
- " clue_nrf52840_express"
195
201
- " cp32-m4"
202
+ - " cp_sapling_m0"
203
+ - " cp_sapling_m0_spiflash"
196
204
- " datalore_ip_m4"
197
205
- " datum_distance"
198
206
- " datum_imu"
@@ -312,7 +320,8 @@ jobs:
312
320
- " teensy40"
313
321
- " teensy41"
314
322
- " teknikio_bluebird"
315
- - " thunderpack"
323
+ - " thunderpack_v11"
324
+ - " thunderpack_v12"
316
325
- " tinkeringtech_scoutmakes_azul"
317
326
- " trellis_m4_express"
318
327
- " trinket_m0"
@@ -360,12 +369,13 @@ jobs:
360
369
- name : Upload to S3
361
370
run : " [ -z \" $AWS_ACCESS_KEY_ID\" ] || aws s3 cp bin/ s3://adafruit-circuit-python/bin/ --recursive --no-progress --region us-east-1"
362
371
env :
372
+ AWS_PAGER : ' '
363
373
AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
364
374
AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
365
375
if : github.event_name == 'push' || (github.event_name == 'release' && (github.event.action == 'published' || github.event.action == 'rerequested'))
366
376
367
377
build-riscv :
368
- runs-on : ubuntu-18 .04
378
+ runs-on : ubuntu-20 .04
369
379
needs : test
370
380
strategy :
371
381
fail-fast : false
@@ -408,16 +418,18 @@ jobs:
408
418
- name : Upload to S3
409
419
run : " [ -z \" $AWS_ACCESS_KEY_ID\" ] || aws s3 cp bin/ s3://adafruit-circuit-python/bin/ --recursive --no-progress --region us-east-1"
410
420
env :
421
+ AWS_PAGER : ' '
411
422
AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
412
423
AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
413
424
if : github.event_name == 'push' || (github.event_name == 'release' && (github.event.action == 'published' || github.event.action == 'rerequested'))
414
425
build-xtensa :
415
- runs-on : ubuntu-latest
426
+ runs-on : ubuntu-20.04
416
427
needs : test
417
428
strategy :
418
429
fail-fast : false
419
430
matrix :
420
431
board :
432
+ - " adafruit_magtag_2.9_grayscale"
421
433
- " adafruit_metro_esp32s2"
422
434
- " electroniccats_bastwifi"
423
435
- " espressif_kaluga_1"
@@ -501,6 +513,7 @@ jobs:
501
513
- name : Upload to S3
502
514
run : " [ -z \" $AWS_ACCESS_KEY_ID\" ] || aws s3 cp bin/ s3://adafruit-circuit-python/bin/ --recursive --no-progress --region us-east-1"
503
515
env :
516
+ AWS_PAGER : ' '
504
517
AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
505
518
AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
506
519
if : github.event_name == 'push' || (github.event_name == 'release' && (github.event.action == 'published' || github.event.action == 'rerequested'))
0 commit comments