CoolFace
Apppublic

FlorianSC/agritech-interface

sourceHugging Faceupdated 6mo agoView on Hugging Face
0likes
cicd.yaml43 linesDownload Raw Back to workflows
1name: CI/CD - Build & Deploy2 3on:4  push:5    branches: [ main ]6  workflow_dispatch:7 8jobs:9  build-and-deploy:10    runs-on: ubuntu-latest11 12    steps:13    - name: Checkout repository14      uses: actions/checkout@v415      with:16        fetch-depth: 017 18    - name: Setup Python19      uses: actions/setup-python@v520      with:21        python-version: "3.12"22 23    - name: Install Poetry24      run: |25        curl -sSL https://install.python-poetry.org | python3 -26        echo "$HOME/.local/bin" >> $GITHUB_PATH27        poetry config virtualenvs.create false28 29    - name: Install dependencies30      run: poetry install --no-interaction --no-ansi --no-root31 32    - name: Run Unit Tests33      run: |34        pip install pytest httpx pytest-cov35        export PYTHONPATH=$PYTHONPATH:. 36        pytest --cov=app --cov-report=term-missing tests/37 38    - name: Push to Hugging Face39      env:40        HF_TOKEN: ${{ secrets.HF_TOKEN }}41      run: |42        git remote add hf https://FLORIANSC:$HF_TOKEN@huggingface.co/spaces/FLORIANSC/agritech-interface43        git push --force hf main