Add school profile API and validation handler #5
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: | |
| pull_request: | |
| jobs: | |
| frontend: | |
| name: Frontend placeholder | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: apps/web | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Check frontend scaffold | |
| shell: bash | |
| run: | | |
| if [ -f package.json ]; then | |
| echo "TODO: replace placeholder with frontend install, lint, and build commands." | |
| echo "Example: pnpm install --frozen-lockfile && pnpm lint && pnpm build" | |
| else | |
| echo "apps/web has no package.json yet; skipping frontend lint/build placeholder." | |
| fi | |
| backend: | |
| name: Backend tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| if: ${{ hashFiles('apps/api/requirements.txt') != '' }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Run backend tests when scaffold exists | |
| shell: bash | |
| run: | | |
| if [ -f apps/api/requirements.txt ]; then | |
| cd apps/api | |
| python -m pip install --upgrade pip | |
| python -m pip install -r requirements.txt | |
| pytest | |
| else | |
| echo "apps/api has no Python project file yet; skipping backend test placeholder." | |
| fi |