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
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
5148741db4
commit
2a42410cd0
2 files changed
+2
-2
No files matched your search
@@ -40,7 +40,7 @@ jobs:
|
|||||||
- name: Check
|
- name: Check
|
||||||
run: |
|
run: |
|
||||||
bash -n dist/steamify.sh
|
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,
|
# 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).
|
# 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:
|
syntax:
|
||||||
@for f in $(SH); do bash -n "$$f" || exit 1; done
|
@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:
|
lint:
|
||||||
@command -v shellcheck >/dev/null && shellcheck -S warning $(SH) || echo "shellcheck not installed: skipped"
|
@command -v shellcheck >/dev/null && shellcheck -S warning $(SH) || echo "shellcheck not installed: skipped"
|
||||||
|
|||||||
Reference in new issue
Block a user