-
Notifications
You must be signed in to change notification settings - Fork 21
63 lines (56 loc) · 1.75 KB
/
test-coreferee.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
name: Coreferee Matrix Test
on:
workflow_dispatch:
jobs:
test-coreferee:
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
python_version: ['3.6', '3.7', '3.8', '3.9', '3.10']
spacy_version: ['3.3.0']
click_version: ['8.0.1']
include:
- os: 'ubuntu-latest'
python-version: '3.9'
spacy_version: '3.2.0'
click_version: '8.0.1'
- os: 'ubuntu-latest'
python-version: '3.9'
spacy_version: '3.1.0'
click_version: '7.1.2'
- os: 'ubuntu-latest'
python-version: '3.9'
spacy_version: '3.0.0'
click_version: '7.1.2'
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository code
uses: actions/checkout@v3
with:
ref: master
- name: Initialize Python
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python_version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install spacy==${{ matrix.spacy_version }} pytest
# see https://github.com/explosion/spaCy/issues/10564
pip uninstall click -y
pip install "click==${{ matrix.click_version }}"
- name: Install spaCy models
run: |
python -m spacy download en_core_web_sm
python -m spacy download en_core_web_md
python -m spacy download en_core_web_lg
python -m spacy download en_core_web_trf
- name: Install Coreferee
run: |
cd ${{ github.workspace }}
pip install .
python -m coreferee install en
- name: Test Coreferee
run: |
pytest tests/common
pytest tests/en