build(deps-dev): bump hypothesis from 6.165.9 to 6.165.10 #289
Workflow file for this run
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: "Unittests" | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: {} | |
| jobs: | |
| pytest: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.11", "3.12", "3.13", "3.14"] | |
| os: [ubuntu-latest, windows-latest, macos-latest] | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Set up uv | |
| uses: astral-sh/setup-uv@v10.0.1 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Run the Unit Tests | |
| run: | | |
| uv run --group tests --extra cli --extra mcp pytest | |
| # Optional NER integration job. Pulls the GLiNER model from the cache so | |
| # the 1.1 GB snapshot is only downloaded once per cache key. Runs only on | |
| # ubuntu-latest with one Python version: this is a smoke check on the | |
| # real model, not a matrix sweep. | |
| ner_integration: | |
| runs-on: ubuntu-latest | |
| name: "NER integration tests" | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Set up uv | |
| uses: astral-sh/setup-uv@v10.0.1 | |
| with: | |
| python-version: "3.12" | |
| - name: Restore GLiNER model cache | |
| id: cache | |
| uses: actions/cache@v6 | |
| with: | |
| path: ~/.cache/kuckuck/models | |
| key: gliner-multi-v2.1 | |
| - name: Install dependencies | |
| # CPU-only torch keeps the install lightweight on Linux runners. Installed | |
| # ad hoc (uv pip, not uv sync) so this preinstalled CPU wheel satisfies | |
| # gliner's torch requirement instead of the project's locked default. | |
| run: | | |
| uv venv | |
| uv pip install --index-url https://download.pytorch.org/whl/cpu torch | |
| uv pip install -e ".[cli,ner,mcp]" --group tests | |
| - name: Download model (cache miss only) | |
| if: steps.cache.outputs.cache-hit != 'true' | |
| run: | | |
| uv run --no-sync python -c "from huggingface_hub import snapshot_download; \ | |
| snapshot_download(repo_id='urchade/gliner_multi-v2.1', \ | |
| local_dir='${HOME}/.cache/kuckuck/models/gliner_multi-v2.1')" | |
| - name: Run NER-marked tests | |
| run: uv run --no-sync pytest -m ner unittests/ |