File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -12,11 +12,11 @@ jobs:
12
12
runs-on : ubuntu-latest
13
13
14
14
steps :
15
- - name : Install SDL
15
+ - name : Install Dependencies
16
16
run : |
17
17
sudo add-apt-repository -y "deb http://archive.ubuntu.com/ubuntu `lsb_release -sc` main universe restricted multiverse"
18
18
sudo apt-get update -y -qq
19
- sudo apt-get install libsdl2-dev
19
+ sudo apt-get install libsdl2-dev parallel
20
20
- name : Clone lv_micropython
21
21
run : |
22
22
git clone https://github.com/lvgl/lv_micropython.git .
Original file line number Diff line number Diff line change @@ -4,11 +4,13 @@ set -e # Exit on error
4
4
5
5
SCRIPT_PATH=" ` dirname \" $0 \" ` "
6
6
7
+ NUMCPUS=` nproc`
8
+
7
9
TEST_PATH=" $SCRIPT_PATH /../examples/*.py $SCRIPT_PATH /../lvgl/examples/"
8
10
EXCLUDE_PATH=" $SCRIPT_PATH /../examples/fb_test.py $SCRIPT_PATH /../examples/uasyncio*.py"
9
11
10
12
EXCLUDE_FINDEXP=$( echo $EXCLUDE_PATH | sed " s/^\|[[:space:]]/ -and -not -path /g" )
11
13
12
14
find $TEST_PATH -name " *.py" $EXCLUDE_FINDEXP | \
13
- xargs -I {} timeout 5m catchsegv $SCRIPT_PATH /../../../ports/unix/micropython-dev $SCRIPT_PATH /run_test.py {}
15
+ parallel --halt-on-error now,fail=1 --max-args=1 --max-procs $NUMCPUS -I {} timeout 5m catchsegv $SCRIPT_PATH /../../../ports/unix/micropython-dev $SCRIPT_PATH /run_test.py {}
14
16
You can’t perform that action at this time.
0 commit comments