|
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: |
|
37 | 37 | run: | |
38 | 38 | sudo apt-get install -y eatmydata |
39 | 39 | 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 |
| 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 mypy |
41 | 41 | - name: Versions |
42 | 42 | run: | |
43 | 43 | gcc --version |
|
67 | 67 | - name: mpy Tests |
68 | 68 | run: MICROPY_CPYTHON3=python3.8 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests -j1 --via-mpy -d basics float |
69 | 69 | working-directory: tests |
70 | | - - name: Stubs |
71 | | - run: make stubs -j2 |
| 70 | + - name: Build and Validate Stubs |
| 71 | + run: make check-stubs -j2 |
72 | 72 | - uses: actions/upload-artifact@v2 |
73 | 73 | with: |
74 | 74 | name: stubs |
@@ -111,12 +111,15 @@ jobs: |
111 | 111 | with: |
112 | 112 | name: mpy-cross.static-x64-windows |
113 | 113 | path: mpy-cross/mpy-cross.static.exe |
114 | | - - name: Upload mpy-cross builds to S3 |
| 114 | + - name: Upload stubs and mpy-cross builds to S3 |
115 | 115 | run: | |
116 | 116 | [ -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 | 117 | [ -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 | 118 | [ -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 |
| 119 | + zip -9r circuitpython-stubs.zip circuitpython-stubs |
| 120 | + [ -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 | 121 | env: |
| 122 | + AWS_PAGER: '' |
120 | 123 | AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} |
121 | 124 | AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} |
122 | 125 | if: github.event_name == 'push' || (github.event_name == 'release' && (github.event.action == 'published' || github.event.action == 'rerequested')) |
@@ -157,19 +160,21 @@ jobs: |
157 | 160 | run: | |
158 | 161 | [ -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 | 162 | env: |
| 163 | + AWS_PAGER: '' |
160 | 164 | AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} |
161 | 165 | AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} |
162 | 166 | if: github.event_name == 'push' || (github.event_name == 'release' && (github.event.action == 'published' || github.event.action == 'rerequested')) |
163 | 167 |
|
164 | 168 |
|
165 | 169 | build-arm: |
166 | | - runs-on: ubuntu-18.04 |
| 170 | + runs-on: ubuntu-20.04 |
167 | 171 | needs: test |
168 | 172 | strategy: |
169 | 173 | fail-fast: false |
170 | 174 | matrix: |
171 | 175 | board: |
172 | 176 | - "8086_commander" |
| 177 | + - "ADM_B_NRF52840_1" |
173 | 178 | - "TG-Watch02A" |
174 | 179 | - "aloriumtech_evo_m51" |
175 | 180 | - "aramcon_badge_2019" |
@@ -360,12 +365,13 @@ jobs: |
360 | 365 | - name: Upload to S3 |
361 | 366 | run: "[ -z \"$AWS_ACCESS_KEY_ID\" ] || aws s3 cp bin/ s3://adafruit-circuit-python/bin/ --recursive --no-progress --region us-east-1" |
362 | 367 | env: |
| 368 | + AWS_PAGER: '' |
363 | 369 | AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} |
364 | 370 | AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} |
365 | 371 | if: github.event_name == 'push' || (github.event_name == 'release' && (github.event.action == 'published' || github.event.action == 'rerequested')) |
366 | 372 |
|
367 | 373 | build-riscv: |
368 | | - runs-on: ubuntu-18.04 |
| 374 | + runs-on: ubuntu-20.04 |
369 | 375 | needs: test |
370 | 376 | strategy: |
371 | 377 | fail-fast: false |
@@ -408,23 +414,27 @@ jobs: |
408 | 414 | - name: Upload to S3 |
409 | 415 | run: "[ -z \"$AWS_ACCESS_KEY_ID\" ] || aws s3 cp bin/ s3://adafruit-circuit-python/bin/ --recursive --no-progress --region us-east-1" |
410 | 416 | env: |
| 417 | + AWS_PAGER: '' |
411 | 418 | AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} |
412 | 419 | AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} |
413 | 420 | if: github.event_name == 'push' || (github.event_name == 'release' && (github.event.action == 'published' || github.event.action == 'rerequested')) |
414 | 421 | build-xtensa: |
415 | | - runs-on: ubuntu-latest |
| 422 | + runs-on: ubuntu-20.04 |
416 | 423 | needs: test |
417 | 424 | strategy: |
418 | 425 | fail-fast: false |
419 | 426 | matrix: |
420 | 427 | board: |
| 428 | + - "adafruit_magtag_2.9_grayscale" |
421 | 429 | - "adafruit_metro_esp32s2" |
422 | 430 | - "electroniccats_bastwifi" |
423 | 431 | - "espressif_kaluga_1" |
424 | 432 | - "espressif_saola_1_wroom" |
425 | 433 | - "espressif_saola_1_wrover" |
426 | 434 | - "microdev_micro_s2" |
427 | 435 | - "muselab_nanoesp32_s2" |
| 436 | + - "targett_module_clip_wroom" |
| 437 | + - "targett_module_clip_wrover" |
428 | 438 | - "unexpectedmaker_feathers2" |
429 | 439 | - "unexpectedmaker_feathers2_prerelease" |
430 | 440 |
|
@@ -499,6 +509,7 @@ jobs: |
499 | 509 | - name: Upload to S3 |
500 | 510 | run: "[ -z \"$AWS_ACCESS_KEY_ID\" ] || aws s3 cp bin/ s3://adafruit-circuit-python/bin/ --recursive --no-progress --region us-east-1" |
501 | 511 | env: |
| 512 | + AWS_PAGER: '' |
502 | 513 | AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} |
503 | 514 | AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} |
504 | 515 | if: github.event_name == 'push' || (github.event_name == 'release' && (github.event.action == 'published' || github.event.action == 'rerequested')) |
0 commit comments