-
Notifications
You must be signed in to change notification settings - Fork 130
41 lines (41 loc) · 1.35 KB
/
nlu_test_flow.yaml
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
name: NLU Tests
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
env:
JOHNSNOWLABS_LICENSE_JSON: ${{ secrets.JOHNSNOWLABS_LICENSE_JSON }}
strategy:
matrix:
python-version: [3.7]
steps:
- uses: actions/setup-java@v1
with:
java-version: '1.8.0'
java-package: jdk
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install wheel dataclasses pandas numpy pytest modin[ray] pytest-xdist pytest-xdist pytest-forked johnsnowlabs
pip uninstall nlu -y
- name: Install Licensed Libs
if:
run: |
python -c 'from johnsnowlabs import nlp;nlp.install(browser_login = False, force_browser=False,visual=True)'
- name: Run all tests
if: always()
run: |
python -m pytest -n 1 --forked -s --capture=no ./tests/base_model_test.py
# python -m pytest -n 1 --dist=each --forked -s --capture=no ./tests/base_model_test.py
# python -m pytest -n 1 --dist=each --forked -s --capture=no ./tests/base_model_test.py