51
51
if : failure()
52
52
run : tests/run-tests.py --print-failures
53
53
54
+ dev :
55
+ runs-on : ubuntu-latest
56
+ steps :
57
+ - uses : actions/checkout@v2
58
+ - name : Build
59
+ run : source tools/ci.sh && ci_unix_dev_build
60
+ - name : Run main test suite
61
+ run : source tools/ci.sh && ci_unix_dev_run_tests
62
+ - name : Print failures
63
+ if : failure()
64
+ run : tests/run-tests.py --print-failures
65
+
54
66
coverage :
55
67
runs-on : ubuntu-latest
56
68
steps :
@@ -65,15 +77,15 @@ jobs:
65
77
run : source tools/ci.sh && ci_native_mpy_modules_build
66
78
- name : Test importing .mpy generated by mpy_ld.py
67
79
run : source tools/ci.sh && ci_unix_coverage_run_native_mpy_tests
68
- - name : Run lcov coverage analysis
80
+ - name : Run gcov coverage analysis
69
81
run : |
70
- mkdir -p coverage
71
- lcov --rc lcov_branch_coverage=1 --directory ports/unix/build-coverage --capture --output-file coverage/lcov.info.all
72
- lcov --remove coverage/lcov.info.all '*/lib/*' '*/ports/unix/*' '*/utils/*' --output-file coverage/lcov.info
73
- - name : Send to coveralls
74
- uses : coverallsapp/github-action@master
82
+ (cd ports/unix && gcov -o build-coverage/py ../../py/*.c || true)
83
+ (cd ports/unix && gcov -o build-coverage/extmod ../../extmod/*.c || true)
84
+ - name : Upload coverage to Codecov
85
+ uses : codecov/codecov-action@v1
75
86
with :
76
- github-token : ${{ secrets.GITHUB_TOKEN }}
87
+ fail_ci_if_error : true
88
+ verbose : true
77
89
- name : Print failures
78
90
if : failure()
79
91
run : tests/run-tests.py --print-failures
@@ -178,11 +190,41 @@ jobs:
178
190
runs-on : macos-11.0
179
191
steps :
180
192
- uses : actions/checkout@v2
181
- - uses : actions/setup-python@v1
193
+ - uses : actions/setup-python@v2
194
+ with :
195
+ python-version : ' 3.8'
182
196
- name : Build
183
197
run : source tools/ci.sh && ci_unix_macos_build
184
198
- name : Run tests
185
199
run : source tools/ci.sh && ci_unix_macos_run_tests
186
200
- name : Print failures
187
201
if : failure()
188
202
run : tests/run-tests.py --print-failures
203
+
204
+ qemu_mips :
205
+ runs-on : ubuntu-latest
206
+ steps :
207
+ - uses : actions/checkout@v2
208
+ - name : Install packages
209
+ run : source tools/ci.sh && ci_unix_qemu_mips_setup
210
+ - name : Build
211
+ run : source tools/ci.sh && ci_unix_qemu_mips_build
212
+ - name : Run main test suite
213
+ run : source tools/ci.sh && ci_unix_qemu_mips_run_tests
214
+ - name : Print failures
215
+ if : failure()
216
+ run : tests/run-tests.py --print-failures
217
+
218
+ qemu_arm :
219
+ runs-on : ubuntu-latest
220
+ steps :
221
+ - uses : actions/checkout@v2
222
+ - name : Install packages
223
+ run : source tools/ci.sh && ci_unix_qemu_arm_setup
224
+ - name : Build
225
+ run : source tools/ci.sh && ci_unix_qemu_arm_build
226
+ - name : Run main test suite
227
+ run : source tools/ci.sh && ci_unix_qemu_arm_run_tests
228
+ - name : Print failures
229
+ if : failure()
230
+ run : tests/run-tests.py --print-failures
0 commit comments