Spaces:
Running
Running
Download .github/workflows/ci-cd.yml from mubi-613/ai-code-scanner-ui: direct link, hf CLI and curl.
- Browser
- Download file 738 Bytes
-
https://huggingface.co/spaces/mubi-613/ai-code-scanner-ui/resolve/main/.github/workflows/ci-cd.yml
- Command line
-
hf download hf://spaces/mubi-613/ai-code-scanner-ui/.github/workflows/ci-cd.yml
-
curl -L -o ci-cd.yml https://huggingface.co/spaces/mubi-613/ai-code-scanner-ui/resolve/main/.github/workflows/ci-cd.yml
738 Bytes
| name: CI/CD Pipeline | |
| on: | |
| push: | |
| branches: [ main ] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.9' | |
| - name: Install dependencies | |
| run: pip install -r requirements.txt | |
| - name: Run unit tests | |
| run: pytest | |
| deploy-huggingface: | |
| needs: test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 0 | |
| - name: Push to Hugging Face | |
| env: | |
| HF_TOKEN: ${{ secrets.HF_TOKEN }} | |
| run: git push --force https://mubi-613:$HF_TOKEN@huggingface.co/spaces/mubi-613/ai-code-scanner-ui main |