Spaces:
Running
Running
Download .github/workflows/ci.yml from Ypeng12/InferRoute: direct link, hf CLI and curl.
- Browser
- Download file 1.07 kB
-
https://huggingface.co/spaces/Ypeng12/InferRoute/resolve/main/.github/workflows/ci.yml
- Command line
-
hf download hf://spaces/Ypeng12/InferRoute/.github/workflows/ci.yml
-
curl -L -o ci.yml https://huggingface.co/spaces/Ypeng12/InferRoute/resolve/main/.github/workflows/ci.yml
1.07 kB
| name: InferRoute CI/CD Pipeline | |
| on: | |
| push: | |
| branches: [ main, master ] | |
| pull_request: | |
| branches: [ main, master ] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.12", "3.13"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| cache: 'pip' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| pip install pytest pytest-cov | |
| - name: Run Pytest Suite with Coverage | |
| run: | | |
| pytest tests/ --cov=inferroute --cov-report=term-missing | |
| docker-build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Build Docker Image | |
| uses: docker/build-push-action@v5 | |
| with: | |
| context: . | |
| push: false | |
| tags: ypeng12/inferroute:latest | |