Skip to content

inference-cron

inference-cron #423

Workflow file for this run

name: inference-cron
# run once a day, at 23:30 UTC
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
jobs:
inference:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.10
uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
working-directory: ./inference
- name: Run inference
env:
MONGO_HOST: ${{ secrets.MONGO_HOST }}
MONGO_SECRET: ${{ secrets.MONGO_SECRET }}
MONGO_USER: ${{ secrets.MONGO_USER }}
run: |
python inference.py
working-directory: ./inference