forked from asreview/asreview
-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (56 loc) · 1.46 KB
/
ci-core.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
name: test-core
on: [push, pull_request]
jobs:
lint-python:
name: lint-python
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-python@v1
with:
python-version: '3.8'
architecture: 'x64'
- name: Install flake8
run: |
pip install flake8
- name: Lint python with flake8
run: |
flake8 . --max-complexity=10 --statistics
test-minimal-deps:
name: test-minimal-deps
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-python@v1
with:
python-version: '3.8'
architecture: 'x64'
- name: Install packages
run: |
pip install pytest
pip install --no-cache-dir .
- name: Run test suite
run: |
pytest tests/
test-full-deps:
name: test-full-deps
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-python@v1
with:
python-version: '3.8'
architecture: 'x64'
- name: Install packages
run: |
pip install pytest
pip install --upgrade setuptools>=41.0.0
pip install --no-cache-dir .[sbert]
pip install --no-cache-dir gensim==4.0.1
pip install --no-cache-dir .[tensorflow]
pip install --no-cache-dir .[dev]
pip install --no-cache-dir .[test]
pip install --no-cache-dir .
- name: Run test suite
run: |
pytest tests/