Skip to content

Grobid augmenter body sections, paragraphs, sentences #758

Grobid augmenter body sections, paragraphs, sentences

Grobid augmenter body sections, paragraphs, sentences #758

Workflow file for this run

name: MMDA CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.8"]
steps:
- uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Test with Python ${{ matrix.python-version }}
run: |
sudo apt-get update
sudo apt-get -y install poppler-utils
pip install -e .[dev,pysbd_predictors,hf_predictors,lp_predictors,recipes,grobid_augment_existing_document_parser]
pytest --cov-fail-under=42 \
--ignore=tests/test_predictors/test_vila_predictors.py \
--ignore=tests/test_predictors/test_figure_table_predictors.py \
--ignore=tests/test_predictors/test_section_nesting_predictor.py
test_vila_predictors:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.8'
architecture: x64
- run: |
sudo apt-get update
sudo apt-get -y install poppler-utils
- run: |
pip install -e .[dev,vila_predictors,section_nesting]
pytest tests/test_predictors/test_vila_predictors.py --no-cov
pytest tests/test_predictors/test_figure_table_predictors.py --no-cov
pytest tests/test_predictors/test_section_nesting_predictor.py --no-cov
test_word_predictors:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.8'
architecture: x64
- run: |
sudo apt-get update
- run: |
pip install -e .[dev,svm_word_predictor]
pytest tests/test_predictors/test_svm_word_predictor.py --no-cov