Complete EcoNav app flow with routing, AI prediction, and training #64
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: EcoNav CI/CD | |
| on: | |
| push: | |
| branches: ["**"] | |
| pull_request: | |
| jobs: | |
| test-and-lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements/backend.txt -r requirements/frontend.txt -r requirements/ml.txt | |
| pip install pytest ruff | |
| - name: Seed demo data | |
| run: python scripts/seed_data.py | |
| - name: Lint | |
| run: ruff check apps models scripts tests | |
| - name: Run tests | |
| run: pytest | |
| - name: Smoke test workflow | |
| run: python scripts/test_pipeline.py | |
| docker-build: | |
| runs-on: ubuntu-latest | |
| needs: test-and-lint | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Build backend image | |
| run: docker build -f infra/docker/backend.Dockerfile -t econav-backend:ci . | |
| - name: Build frontend image | |
| run: docker build -f infra/docker/frontend.Dockerfile -t econav-frontend:ci . |