chore: update Python syntax check workflow and add browser helper script

This commit is contained in:
Space-Banane
2026-04-06 23:07:57 +02:00
parent b817f34607
commit 002533044a
3 changed files with 43 additions and 5 deletions

View File

@@ -1,22 +1,31 @@
name: Python syntax & lint
name: Code Check - Quality and Syntax
on:
push:
branches: ["**"]
paths:
- '**/*.py'
pull_request:
branches: ["**"]
paths:
- '**/*.py'
jobs:
syntax-lint:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11", "3.12", "3.13", "3.14"]
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: '3.x'
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
@@ -36,3 +45,11 @@ jobs:
files=$(git ls-files '*.py')
if [ -z "$files" ]; then echo "No Python files to lint"; exit 0; fi
flake8 $files
- name: Check execution (Smoke Test)
run: |
files=$(git ls-files '*.py')
for file in $files; do
echo "Testing execution of $file..."
python "$file" --version || python -m py_compile "$file"
done