Improved paragraph algorithm #347
Workflow file for this run
This file contains 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: Tests | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
- dev | |
jobs: | |
Test: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: install python3 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.11 | |
- name: install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install pytest | |
pip install torch --index-url https://download.pytorch.org/whl/cpu | |
pip install ./ | |
pip list | |
- name: download spacy model | |
run: | | |
python -m spacy download en_core_web_md | |
- name: Download en-core-med7-lg wheel | |
run: wget -O en_core_med7_lg-any-py3-none-any.whl https://huggingface.co/kormilitzin/en_core_med7_lg/resolve/main/en_core_med7_lg-any-py3-none-any.whl | |
- name: Install en-core-med7-lg | |
run: pip install en_core_med7_lg-any-py3-none-any.whl | |
- name: run pytest | |
run: pytest ./tests/* | |
- name: Lint with Ruff | |
run: | | |
pip install ruff | |
ruff --output-format=github . | |
continue-on-error: true |