Spaces:
Sleeping
Sleeping
| name: Python syntax check | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python 3.11 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Install test dependencies | |
| run: | | |
| pip install pytest requests | |
| - name: Compile app and scripts | |
| run: | | |
| python -m compileall app scripts -q | |
| - name: Run pytest | |
| run: | | |
| pytest tests/ -q --tb=short | |