Spaces:
Sleeping
Sleeping
| name: Deploy to HuggingFace Spaces | |
| on: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| lfs: true | |
| - name: Push to HuggingFace Space | |
| env: | |
| HF_TOKEN: ${{ secrets.HF_TOKEN }} | |
| run: | | |
| git config --global user.email "ci@schemesaathi" | |
| git config --global user.name "SchemeSaathi CI" | |
| git remote add space https://RavindranadhM:$HF_TOKEN@huggingface.co/spaces/RavindranadhM/schemesaathi | |
| git push space main --force | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Install deps | |
| run: pip install ruff | |
| - name: Lint | |
| run: ruff check agent/ api/ ingestor/ --ignore E501,E402 | |