-
Notifications
You must be signed in to change notification settings - Fork 8
41 lines (36 loc) · 1.15 KB
/
predict-tasks.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Predict Tasks
on:
workflow_dispatch:
schedule:
- cron: '0 */4 * * *'
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.8
uses: actions/setup-python@v3
with:
python-version: "3.8"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
python -m pip install -e .
- name: Run auto_prediction_schedule.py
env:
TOKEN: ${{ secrets.TOKEN }}
LS_HOST: ${{ secrets.LS_HOST }}
DB_NAME: ${{ secrets.DB_NAME }}
DB_CONNECTION_STRING: ${{ secrets.DB_CONNECTION_STRING }}
EXCLUDE_LABELS: ${{ secrets.EXCLUDE_LABELS }}
S3_ENDPOINT: ${{ secrets.S3_ENDPOINT }}
S3_ACCESS_KEY: ${{ secrets.S3_ACCESS_KEY }}
S3_SECRET_KEY: ${{ secrets.S3_SECRET_KEY }}
S3_REGION: ${{ secrets.S3_REGION }}
run: |
python birdfsd_yolov5/label_studio_helpers/sync_tasks.py
python birdfsd_yolov5/prediction/auto_prediction_schedule.py
python birdfsd_yolov5/label_studio_helpers/sync_tasks.py