Skip to content

Commit 8f1faf7

Browse files
committed
actually run tests
1 parent a8d5026 commit 8f1faf7

File tree

1 file changed

+43
-2
lines changed

1 file changed

+43
-2
lines changed

.github/workflows/build.yml

Lines changed: 43 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,48 @@ jobs:
1616
uses: actions/setup-python@v1
1717
with:
1818
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
1959

20-
build:
60+
build-arm:
2161
runs-on: ubuntu-16.04
2262
needs: test
2363
strategy:
@@ -75,4 +115,5 @@ jobs:
75115
- name: mpy-cross
76116
run: make -C mpy-cross -j2
77117
- 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

Comments
 (0)