name: Caption index regression tests on: pull_request: paths: - "scene_search/meili.py" - "scene_search/sync.py" - "scene_search/cli.py" - "tests/test_meili.py" - "tests/test_incremental_caption_sync.py" - ".github/workflows/caption-index-tests.yml" workflow_dispatch: jobs: test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: python-version: "3.12" - name: Install lightweight dependencies run: pip install numpy requests python-dotenv pillow - name: Test Meilisearch document methods and caption repair run: python -m unittest discover -s tests -p "test_meili.py" -v && python -m unittest discover -s tests -p "test_incremental_caption_sync.py" -v - name: Check module syntax run: python -m compileall -q scene_search tests