Skip to content

chore: update requirements.txt #2

chore: update requirements.txt

chore: update requirements.txt #2

Workflow file for this run

name: Python Syntax Check
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
workflow_dispatch: # Allows manual triggering
jobs:
syntax-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip install flake8
- name: Check syntax with flake8
run: |
# Run flake8 with very permissive settings
# Only check for syntax errors (E9) and undefined names (F821)
# Use --exit-zero to ensure the workflow doesn't fail
flake8 . --count --select=E9,F821 --show-source --statistics --exit-zero
- name: Run Python files with syntax check only
run: |
# This will only check for syntax errors without executing the code
find . -type f -name "*.py" -not -path "*/\.*" -exec python -m py_compile {} \; || echo "Syntax check complete"