Spaces:
Configuration error
Configuration error
Download .github/workflows/ci.yml from Sivaneshakumar/sanjeevani-api: direct link, hf CLI and curl.
- Browser
- Download file 1.25 kB
-
https://huggingface.co/spaces/Sivaneshakumar/sanjeevani-api/resolve/main/.github/workflows/ci.yml
- Command line
-
hf download hf://spaces/Sivaneshakumar/sanjeevani-api/.github/workflows/ci.yml
-
curl -L -o ci.yml https://huggingface.co/spaces/Sivaneshakumar/sanjeevani-api/resolve/main/.github/workflows/ci.yml
1.25 kB
| name: SanjeevaniAI CI Pipeline | |
| on: | |
| push: | |
| branches: [ main, master, develop ] | |
| pull_request: | |
| branches: [ main, master ] | |
| jobs: | |
| backend-tests: | |
| name: Backend Pytest & Lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v4 | |
| - name: Set up Python 3.11 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| cache: "pip" | |
| - name: Install Python Dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| - name: Run Backend Pytest Suite | |
| run: | | |
| pytest backend/tests -v --durations=10 | |
| frontend-build: | |
| name: Frontend Typecheck & Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v4 | |
| - name: Set up Node.js 20.x | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: "npm" | |
| cache-dependency-path: frontend/package.json | |
| - name: Install Frontend Dependencies | |
| working-directory: ./frontend | |
| run: npm ci | |
| - name: Next.js Typecheck & Production Build | |
| working-directory: ./frontend | |
| run: npm run build | |