|
16 | 16 | uses: actions/setup-python@v1 |
17 | 17 | with: |
18 | 18 | python-version: 3.5 |
| 19 | + - name: Install deps |
| 20 | + run: | |
| 21 | + sudo apt-get install -y gettext librsvg2-bin |
| 22 | + pip install requests sh click setuptools cpp-coveralls Sphinx sphinx-rtd-theme recommonmark sphinxcontrib-svg2pdfconverter polib |
| 23 | + - name: Versions |
| 24 | + run: | |
| 25 | + gcc --version |
| 26 | + python3 --version |
| 27 | + - uses: actions/checkout@v1 |
| 28 | + with: |
| 29 | + submodules: true |
| 30 | + - name: CircuitPython version |
| 31 | + run: git describe --dirty --always --tags |
| 32 | + - name: Build mpy-cross |
| 33 | + run: make -C mpy-cross -j2 |
| 34 | + - name: Build unix port |
| 35 | + run: | |
| 36 | + make -C ports/unix deplibs -j2 |
| 37 | + make -C ports/unix -j2 |
| 38 | + make -C ports/unix coverage -j2 |
| 39 | + - name: Test all |
| 40 | + run: MICROPY_CPYTHON3=python3.5 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests -j1 |
| 41 | + working-directory: tests |
| 42 | + - name: Test threads |
| 43 | + run: MICROPY_CPYTHON3=python3.5 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests -j1 -d thread |
| 44 | + working-directory: tests |
| 45 | + - name: Native Tests |
| 46 | + run: MICROPY_CPYTHON3=python3.5 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests -j1 --emit native |
| 47 | + working-directory: tests |
| 48 | + - name: mpy Tests |
| 49 | + run: MICROPY_CPYTHON3=python3.5 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests -j1 --via-mpy -d basics float |
| 50 | + working-directory: tests |
| 51 | + - name: Docs |
| 52 | + run: sphinx-build -E -W -b html . _build/html |
| 53 | + - name: Translations |
| 54 | + run: make check-translate |
| 55 | + - name: Website |
| 56 | + run: build_board_info.py |
| 57 | + shell: python |
| 58 | + working-directory: tools |
19 | 59 |
|
20 | | - build: |
| 60 | + build-arm: |
21 | 61 | runs-on: ubuntu-16.04 |
22 | 62 | needs: test |
23 | 63 | strategy: |
|
75 | 115 | - name: mpy-cross |
76 | 116 | run: make -C mpy-cross -j2 |
77 | 117 | - name: build |
78 | | - run: pushd tools && TRAVIS_BOARDS="${{ matrix.board }}" python3 -u build_release_files.py && popd |
| 118 | + run: TRAVIS_BOARDS="${{ matrix.board }}" python3 -u build_release_files.py |
| 119 | + working-directory: tools |
0 commit comments