Staging Embedding Cleanup #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 }}" |