Merge pull request #6 from OrcasAlbatross/main #18
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: Flask App Validation | |
| on: | |
| push: | |
| paths: | |
| - "2025/**" | |
| pull_request: | |
| paths: | |
| - "2025/**" | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: 2025 | |
| 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: | | |
| pip install -r requirements.txt | |
| - name: Validate snippets JSON | |
| run: python -m json.tool snippets/*.json | |
| - name: Run Flask app (smoke test) | |
| run: | | |
| python -m flask --app app.py routes | |