Skip to content

Commit 8497cd5

Browse files
committed
run tests in GH actions
1 parent 5c88642 commit 8497cd5

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/pythonpackage.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,18 @@ jobs:
2929
run: |
3030
python -m pip install --upgrade pip
3131
pip install -r requirements.txt
32+
pip install flake8 pytest "pytest-cov<2.6" codecov
33+
pip install -U "sklearn"
3234
- name: Lint with flake8
3335
run: |
34-
pip install flake8
3536
# stop the build if there are Python syntax errors or undefined names
3637
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
3738
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
3839
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
40+
- name: Run tests
41+
run: |
42+
pip install .
43+
python -m pytest -v test/ ot/ --doctest-modules --ignore ot/gpu/ --cov=ot
44+
- name: Upload codecov
45+
run: |
46+
codecov

0 commit comments

Comments
 (0)