-
Notifications
You must be signed in to change notification settings - Fork 18
65 lines (57 loc) · 1.91 KB
/
mmda-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
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