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