CoolFace
Apppublic

asad2662/face-type-classifier

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes
ci-cd.yml49 linesDownload Raw Back to workflows
1name: CI/CD Pipeline2 3on:4  push:5    branches: [ "main" ]6  pull_request:7    branches: [ "main" ]8  workflow_dispatch:   # allow manual runs9 10jobs:11  build:12    runs-on: ubuntu-latest13 14    steps:15      - uses: actions/checkout@v316 17      - name: Set up Python18        uses: actions/setup-python@v419        with:20          python-version: "3.10"21 22      - name: Install dependencies23        run: make install24 25      - name: Format Code26        run: make format27 28      - name: Run Tests29        run: make test || echo "⚠️ Tests failed, continuing..."   # optional30 31      # (future) add this if you have training code32      # - name: Train Model33      #   run: make train34 35      # - name: Evaluate Model36      #   run: make eval37 38      - name: Install Hugging Face CLI39        run: pip install -U "huggingface_hub[cli]"40 41      - name: Login to Hugging Face42        run: huggingface-cli login --token ${{ secrets.HF_TOKEN }}43 44      - name: Deploy to Hugging Face Space45        run: |46          huggingface-cli upload asad2662/face-type-classifier . \47            --repo-type=space \48            --commit-message "Auto-deploy from CI/CD pipeline"49