relax jsonlines requirement to just >=3 #39
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: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - 'spacy-3-8' | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| test: | |
| name: Test ${{ matrix.os }} / ${{ matrix.python-version }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest] | |
| python-version: ['3.10'] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| uv sync --all-extras | |
| uv pip install pip | |
| - name: Cache spaCy model | |
| uses: actions/cache@v4 | |
| id: spacy-model | |
| with: | |
| path: | | |
| .venv/lib/python${{ matrix.python-version }}/site-packages/en_core_web_trf* | |
| .venv/lib/python${{ matrix.python-version }}/site-packages/spacy_curated_transformers* | |
| .venv/lib/python${{ matrix.python-version }}/site-packages/curated_tokenizers* | |
| .venv/lib/python${{ matrix.python-version }}/site-packages/curated_transformers* | |
| key: spacy-en-core-web-trf-${{ matrix.os }}-py${{ matrix.python-version }} | |
| - name: Download spaCy model | |
| if: steps.spacy-model.outputs.cache-hit != 'true' | |
| run: uv run python -m spacy download en_core_web_trf | |
| - name: Run tests | |
| run: uv run pytest |