mirror of
https://github.com/Prowlarr/Indexers.git
synced 2026-04-25 02:48:27 +01:00
New: add Python script syntax validation to CI
This commit is contained in:
17
.github/workflows/ci.yml
vendored
17
.github/workflows/ci.yml
vendored
@@ -48,3 +48,20 @@ jobs:
|
||||
- name: yaml schema check
|
||||
run: |
|
||||
bash ./scripts/validate-python.sh
|
||||
python_syntax:
|
||||
name: Validate Python Script Syntax
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.11'
|
||||
- name: Check Python syntax
|
||||
run: |
|
||||
python3 -m py_compile scripts/validate.py
|
||||
echo "Python script syntax validation passed"
|
||||
- name: Run basic Python tests
|
||||
run: |
|
||||
python3 -c "import ast; ast.parse(open('scripts/validate.py').read()); print('AST parsing successful')"
|
||||
python3 scripts/validate.py --version
|
||||
|
||||
Reference in New Issue
Block a user