Download .github/workflows/control-tick.yml from SolarWine/api: direct link, hf CLI and curl.
- Browser
- Download file 887 Bytes
-
https://huggingface.co/spaces/SolarWine/api/resolve/main/.github/workflows/control-tick.yml
- Command line
-
hf download hf://spaces/SolarWine/api/.github/workflows/control-tick.yml
-
curl -L -o control-tick.yml https://huggingface.co/spaces/SolarWine/api/resolve/main/.github/workflows/control-tick.yml
887 Bytes
| name: Control Loop Tick | |
| on: | |
| schedule: | |
| - cron: "*/15 * * * *" | |
| workflow_dispatch: | |
| jobs: | |
| tick: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| cache: pip | |
| - name: Install dependencies | |
| run: pip install -r requirements.txt -r backend/requirements.txt | |
| - name: Run control tick | |
| run: python -m backend.workers.control_tick | |
| env: | |
| THINGSBOARD_HOST: ${{ secrets.THINGSBOARD_HOST }} | |
| THINGSBOARD_USERNAME: ${{ secrets.THINGSBOARD_USERNAME }} | |
| THINGSBOARD_PASSWORD: ${{ secrets.THINGSBOARD_PASSWORD }} | |
| IMS_API_TOKEN: ${{ secrets.IMS_API_TOKEN }} | |
| UPSTASH_REDIS_URL: ${{ secrets.UPSTASH_REDIS_URL }} | |
| UPSTASH_REDIS_TOKEN: ${{ secrets.UPSTASH_REDIS_TOKEN }} | |