Skip to content

Staging Embedding Cleanup #1

Staging Embedding Cleanup

Staging Embedding Cleanup #1

name: Staging Embedding Cleanup
on:
workflow_dispatch:
inputs:
dry_run:
description: >-
Dry-run first. Set false only after confirming both Labelbox Python
SDK Staging and LBox Develop are quiet.
required: true
type: boolean
default: true
permissions:
contents: read
jobs:
cleanup:
runs-on: ubuntu-latest
env:
LABELBOX_TEST_API_KEY: ${{ secrets.STAGING_API_KEY_ORG_CMOI3PQ7801GM070D4TPG7FMH }}
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
with:
python-version: "3.11"
cache: pip
- name: Install SDK from this repository
working-directory: libs/labelbox
run: python -m pip install .
- name: List or clean leaked staging embeddings
working-directory: libs/labelbox
run: >-
python -m tests.scripts.cleanup_staging_embeddings
--dry-run "${{ inputs.dry_run }}"