Skip to content

Complete EcoNav app flow with routing, AI prediction, and training #63

Complete EcoNav app flow with routing, AI prediction, and training

Complete EcoNav app flow with routing, AI prediction, and training #63

Workflow file for this run

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 .