-
Notifications
You must be signed in to change notification settings - Fork 8
50 lines (42 loc) · 1.25 KB
/
construct-dataset.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
42
43
44
45
46
47
48
49
50
name: Construct Dataset
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
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 construct_dataset.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/datasets_manager/construct_dataset.py
- name: 'Upload Artifact'
uses: actions/upload-artifact@v3
with:
name: artifacts
path: |
*.parquet
retention-days: 30