diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b27ab891..419e980f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -12,8 +12,8 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [ '3.9', '3.10', '3.11', '3.12' ] - max-parallel: 4 + python-version: [ '3.9', '3.10', '3.11', '3.12', '3.13' ] + max-parallel: 5 steps: - uses: actions/checkout@v4 @@ -23,7 +23,9 @@ jobs: run: uv python install ${{ matrix.python-version }} - name: Install the project run: | - uv sync --all-extras --dev + uv venv + uv pip install --dry-run ".[spacy,deid,meta-cat]" + uv --verbose sync --all-extras --dev uv run python -m ensurepip uv run python -m pip install --upgrade pip - name: Check types diff --git a/pyproject.toml b/pyproject.toml index 56ecbaab..dcd381f4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -46,6 +46,7 @@ classifiers = [ "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "Programming Language :: Python :: 3 :: Only", ] @@ -75,14 +76,15 @@ dependencies = [ # Optional # projects. [project.optional-dependencies] # Optional dev = [ - "ruff~=0.1.7", + "ruff~=0.11.10", "mypy", "types-tqdm", "types-setuptools", "types-PyYAML", + "scipy~=1.15.0; python_version == '3.13'", ] spacy = [ - "spacy", + "spacy>=3.8.4; python_version >= '3.10'", "spacy<3.8.4; python_version == '3.9'" ] meta_cat = [ diff --git a/tests/resources/mct2_cdb/config/components/tagging/.schema.json b/tests/resources/mct2_cdb/config/components/tagging/.schema.json index 3de905a8..86061d28 100644 --- a/tests/resources/mct2_cdb/config/components/tagging/.schema.json +++ b/tests/resources/mct2_cdb/config/components/tagging/.schema.json @@ -1 +1 @@ -{"serialised-class": "medcat2.config.config.ComponentConfig", "init-parts": []} \ No newline at end of file +{"serialised-class": "medcat2.config.config.ComponentConfig", "init-parts": []} diff --git a/tests/resources/mct2_cdb/config/components/token_normalizing/.schema.json b/tests/resources/mct2_cdb/config/components/token_normalizing/.schema.json index 3de905a8..86061d28 100644 --- a/tests/resources/mct2_cdb/config/components/token_normalizing/.schema.json +++ b/tests/resources/mct2_cdb/config/components/token_normalizing/.schema.json @@ -1 +1 @@ -{"serialised-class": "medcat2.config.config.ComponentConfig", "init-parts": []} \ No newline at end of file +{"serialised-class": "medcat2.config.config.ComponentConfig", "init-parts": []}