You've already forked MicroPythonOS
mirror of
https://github.com/m5stack/MicroPythonOS.git
synced 2026-05-20 11:51:27 -07:00
Move scripts/tests/check_syntax.sh to tests/check_syntax.sh
This commit is contained in:
@@ -66,7 +66,7 @@ jobs:
|
||||
|
||||
- name: Run tests on unix dev
|
||||
run: |
|
||||
./scripts/tests/check_syntax.sh
|
||||
./tests/check_syntax.sh
|
||||
continue-on-error: true
|
||||
|
||||
- name: Upload built binary as artifact
|
||||
|
||||
@@ -35,7 +35,7 @@ jobs:
|
||||
|
||||
- name: Run tests on macOS dev
|
||||
run: |
|
||||
./scripts/tests/check_syntax.sh
|
||||
./tests/check_syntax.sh
|
||||
continue-on-error: true
|
||||
|
||||
- name: Upload built binary as artifact
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
#!/bin/bash
|
||||
mydir=$(readlink -f "$0")
|
||||
mydir=$(dirname "$mydir")
|
||||
fs="$mydir"/../../internal_filesystem/
|
||||
cross="$mydir"/../../lvgl_micropython/lib/micropython/mpy-cross/build/mpy-cross
|
||||
fs="$mydir"/../internal_filesystem/
|
||||
cross="$mydir"/../lvgl_micropython/lib/micropython/mpy-cross/build/mpy-cross
|
||||
|
||||
failed=0
|
||||
while read file; do
|
||||
@@ -17,4 +17,7 @@ done < <(find "$fs" -iname "*.py")
|
||||
if [ $failed -ne 0 ]; then
|
||||
echo "ERROR: $failed .py files have syntax errors"
|
||||
exit 1
|
||||
else
|
||||
echo "GOOD: no .py files have syntax errors"
|
||||
exit 0
|
||||
fi
|
||||
Reference in New Issue
Block a user