mirror of
https://github.com/theupriser/steamify-cachyos.git
synced 2026-10-03 17:41:58 +02:00
fix(ci): the Python syntax check writes no __pycache__ the bundler would embed
This commit is contained in:
1 parent
f183c1cf8e
commit
949873f14a
2 files changed
+2
-2
No files matched your search
@@ -40,7 +40,7 @@ jobs:
|
||||
- name: Check
|
||||
run: |
|
||||
bash -n dist/steamify.sh
|
||||
python3 -m py_compile ui/steamify-ui patches/*.py
|
||||
python3 -c 'import ast, sys; [ast.parse(open(f).read(), f) for f in sys.argv[1:]]' ui/steamify-ui patches/*.py
|
||||
|
||||
# shellcheck through an action that brings its own binary: GitHub's runner has it installed,
|
||||
# Gitea's act_runner image doesn't. One file per run, as before (the exceptions are the bundle's).
|
||||
|
||||
@@ -9,7 +9,7 @@ check: syntax lint test bundle
|
||||
|
||||
syntax:
|
||||
@for f in $(SH); do bash -n "$$f" || exit 1; done
|
||||
python3 -m py_compile ui/steamify-ui patches/*.py
|
||||
python3 -c 'import ast, sys; [ast.parse(open(f).read(), f) for f in sys.argv[1:]]' ui/steamify-ui patches/*.py
|
||||
|
||||
lint:
|
||||
@command -v shellcheck >/dev/null && shellcheck -S warning $(SH) || echo "shellcheck not installed: skipped"
|
||||
|
||||
Reference in new issue
Block a user