Streamlit Cloud deploy readiness + diagnostics + config validator #21
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: | |
| - "*" | |
| pull_request: | |
| branches: | |
| - "*" | |
| jobs: | |
| lint-and-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install -r requirements.txt | |
| python -m pip install ruff | |
| - name: Compile all Python files (syntax gate) | |
| run: python -m compileall . | |
| - name: Syntax check (compileall) | |
| run: python scripts/check_syntax.py | |
| - name: Ruff lint | |
| run: ruff check . | |
| - name: Run tests | |
| run: pytest -q |