Files
visual-semiotic-ai-analysis/.gitea/workflows/sync-annotations.yml
T
Brian Bjarke Jensen 28abd22571
Code Quality Pipeline / code-quality (pull_request) Failing after 1m12s
Test Python Package / test (pull_request) Successful in 41s
updated to run python script to synchronize annotations from label studio to annotation repository
2025-09-18 23:48:49 +02:00

36 lines
894 B
YAML

name: Sync Label Studio Annotations
on:
schedule:
# This job will run every day at 03:00 AM
- cron: "0 3 * * *"
jobs:
sync_storage:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ vars.PYTHON_VERSION }}
- name: Install uv
run: pip install uv
- name: Install dependencies
env:
UV_LINK_MODE: copy
run: uv sync --all-extras
- name: Sync annotations
env:
MINIO_ENDPOINT: ${{ vars.MINIO_ENDPOINT }}
MINIO_ACCESS_KEY: ${{ secrets.MINIO_ACCESS_KEY }}
MINIO_SECRET_KEY: ${{ secrets.MINIO_SECRET_KEY }}
MINIO_BUCKET: ${{ vars.MINIO_BUCKET }}
run: |
uv run python scripts/sync_label_studio_annotations.py