Skip to content

feat(medcat): CU-869bydfx8 Allow downloading missing plugins #674

feat(medcat): CU-869bydfx8 Allow downloading missing plugins

feat(medcat): CU-869bydfx8 Allow downloading missing plugins #674

Workflow file for this run

name: medcat-v2 - Test
on:
push:
branches: [ main ]
pull_request:
paths:
- 'medcat-v2/**'
- '.github/workflows/medcat-v2**'
defaults:
run:
working-directory: ./medcat-v2
jobs:
base-install-imports:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
# NOTE: using oldest supported python version
- name: Install uv for Python 3.10
uses: astral-sh/setup-uv@v7
with:
python-version: "3.10"
enable-cache: true
cache-dependency-glob: "medcat-v2/uv.lock"
- name: Install the project
run: |
uv sync # NO extras
- name: Check that all packages / modules can be imported with default / no-extras install
run: |
uv run python tests/other/check_base_install_can_import_all.py medcat
types-lints-tests-regression:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.10', '3.11', '3.12', '3.13' ]
max-parallel: 5
steps:
- uses: actions/checkout@v6
- name: Install uv for Python ${{ matrix.python-version }}
uses: astral-sh/setup-uv@v7
with:
python-version: ${{ matrix.python-version }}
enable-cache: true
cache-dependency-glob: "medcat-v2/uv.lock"
- name: Install the project
run: |
uv sync --all-extras --dev
uv run python -m ensurepip
uv run python -m pip install --upgrade pip
- name: Check types
run: |
uv run python -m mypy --follow-imports=normal medcat
- name: Ruff linting
run: |
uv run ruff check medcat --preview
- name: Test
run: |
timeout 30m uv run python -m unittest discover
- name: Model regression
run: |
uv run bash tests/backwards_compatibility/run_current.sh
- name: Backwards compatibility
run: |
uv run bash tests/backwards_compatibility/check_backwards_compatibility.sh
- name: Minimize uv cache
run: uv cache prune --ci