Skip to content

Commit

Permalink
fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
plandes committed Aug 8, 2024
1 parent 4ca2cc1 commit cad3d9c
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: CI

on:
pull_request:
push:
paths-ignore:
- '**.md'
- 'doc/*'
branches:
- master

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10', '3.11']
steps:
- name: Checkout reposistory
uses: actions/checkout@v3
with:
submodules: recursive

- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}

- name: Display Python version
run: python -c "import sys; print(sys.version)"

# https://github.com/nmslib/nmslib/issues/538
- name: Install an available library from the abandoned nmslib project
run: >-
[ $(python --version | sed -E 's/Python ([0-9]+\.[0-9]+)\.[0-9]+.*/\1/') == '3.11' ] && \
pip install https://raw.githubusercontent.com/plandes/mednlp/master/test-resources/github-workflow-lib/nmslib-2.1.2-cp311-cp311-linux_x86_64.whl || true
- name: Prepare tests
run: 'make info deps'

- name: Run tests
run: 'make test'
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
[![PyPI][pypi-badge]][pypi-link]
[![Python 3.10][python310-badge]][python310-link]
[![Python 3.11][python311-badge]][python311-link]
[![Build Status][build-badge]][build-link]

This repository contains the a Python package to automatically segment and
identify sections of clinical notes, such as electronic health record (EHR)
Expand Down Expand Up @@ -425,6 +426,8 @@ Copyright (c) 2022 - 2024 Paul Landes
[python310-link]: https://www.python.org/downloads/release/python-3100
[python311-badge]: https://img.shields.io/badge/python-3.11-blue.svg
[python311-link]: https://www.python.org/downloads/release/python-3110
[build-badge]: https://github.com/plandes/mimicsid/workflows/CI/badge.svg
[build-link]: https://github.com/plandes/mimicsid/actions

[MedCat]: https://github.com/CogStack/MedCAT
[spaCy]: https://spacy.io
Expand Down

0 comments on commit cad3d9c

Please sign in to comment.