Skip to content

Commit d8e0fc0

Browse files
Move scripts/tests/check_syntax.sh to tests/check_syntax.sh
1 parent d334c55 commit d8e0fc0

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

.github/workflows/linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
6767
- name: Run tests on unix dev
6868
run: |
69-
./scripts/tests/check_syntax.sh
69+
./tests/check_syntax.sh
7070
continue-on-error: true
7171

7272
- name: Upload built binary as artifact

.github/workflows/macos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
3636
- name: Run tests on macOS dev
3737
run: |
38-
./scripts/tests/check_syntax.sh
38+
./tests/check_syntax.sh
3939
continue-on-error: true
4040

4141
- name: Upload built binary as artifact
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/bin/bash
22
mydir=$(readlink -f "$0")
33
mydir=$(dirname "$mydir")
4-
fs="$mydir"/../../internal_filesystem/
5-
cross="$mydir"/../../lvgl_micropython/lib/micropython/mpy-cross/build/mpy-cross
4+
fs="$mydir"/../internal_filesystem/
5+
cross="$mydir"/../lvgl_micropython/lib/micropython/mpy-cross/build/mpy-cross
66

77
failed=0
88
while read file; do
@@ -17,4 +17,7 @@ done < <(find "$fs" -iname "*.py")
1717
if [ $failed -ne 0 ]; then
1818
echo "ERROR: $failed .py files have syntax errors"
1919
exit 1
20+
else
21+
echo "GOOD: no .py files have syntax errors"
22+
exit 0
2023
fi

0 commit comments

Comments
 (0)