File tree 2 files changed +33
-3
lines changed
2 files changed +33
-3
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,37 @@ name: Build modules
4
4
on : [push, pull_request]
5
5
6
6
jobs :
7
- test :
7
+
8
+ test_static :
9
+ permissions :
10
+ contents : write
11
+ runs-on : ubuntu-24.04
12
+ env :
13
+ MPY_DIR : ./micropython
14
+ MICROPYTHON_BIN : ./micropython/ports/unix/build-standard/micropython
15
+ steps :
16
+ - uses : actions/checkout@v4
17
+ with :
18
+ submodules : true
19
+ - name : Install OS dependencies
20
+ run : sudo add-apt-repository universe
21
+ - uses : actions/setup-python@v5
22
+ with :
23
+ python-version : ' 3.10'
24
+ - uses : actions/checkout@v4
25
+ with :
26
+ repository : jonnor/micropython
27
+ path : micropython
28
+ ref : v1.25preview-linking
29
+ - name : Install Python dependencies
30
+ run : pip install -r requirements.txt
31
+ - name : Setup MicroPython X86
32
+ working-directory : micropython
33
+ run : source tools/ci.sh && ci_unix_32bit_setup && ci_unix_build_helper VARIANT=standard USER_C_MODULES=`pwd`/src/
34
+ - name : Run test on x64
35
+ run : make emlearn_trees.results V=1
36
+
37
+ test_dynamic :
8
38
permissions :
9
39
contents : write
10
40
runs-on : ubuntu-24.04
Original file line number Diff line number Diff line change @@ -37,8 +37,8 @@ $(MODULES_PATH)/emlearn_iir_q15.mpy:
37
37
$(MODULES_PATH ) /emlearn_arrayutils.mpy :
38
38
make -C src/emlearn_arrayutils/ ARCH=$(ARCH ) MPY_DIR=$(MPY_DIR_ABS ) V=1 clean dist
39
39
40
- emlearn_trees.results : $( MODULES_PATH ) /emlearn_trees.mpy
41
- MICROPYPATH= $( MODULES_PATH ) $(MICROPYTHON_BIN ) tests/test_trees.py
40
+ emlearn_trees.results :
41
+ $(MICROPYTHON_BIN ) tests/test_trees.py
42
42
43
43
emlearn_neighbors.results : $(MODULES_PATH ) /emlearn_neighbors.mpy
44
44
MICROPYPATH=$(MODULES_PATH ) $(MICROPYTHON_BIN ) tests/test_neighbors.py
You can’t perform that action at this time.
0 commit comments