summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorRĂ©mi Flamary <remi.flamary@gmail.com>2020-05-04 11:31:50 +0200
committerGitHub <noreply@github.com>2020-05-04 11:31:50 +0200
commit321d4540db55cabc45d21efe021ed74dd78613c3 (patch)
treea27e878b9d902321d59529828a62adf01ba4fb68 /.github
parent904edc00ab1102a065c98cef913cb01c143a95d3 (diff)
parente65c1f745cf2eacc6672727e7a3869efd8318768 (diff)
Merge branch 'master' into prepare_v0.7
Diffstat (limited to '.github')
-rw-r--r--.github/requirements_strict.txt7
-rw-r--r--.github/workflows/build_tests.yml32
2 files changed, 37 insertions, 2 deletions
diff --git a/.github/requirements_strict.txt b/.github/requirements_strict.txt
new file mode 100644
index 0000000..d7539c5
--- /dev/null
+++ b/.github/requirements_strict.txt
@@ -0,0 +1,7 @@
+numpy==1.16.*
+scipy==1.0.*
+cython==0.23.*
+matplotlib
+cvxopt
+scikit-learn
+pytest
diff --git a/.github/workflows/build_tests.yml b/.github/workflows/build_tests.yml
index 652655f..41b08b3 100644
--- a/.github/workflows/build_tests.yml
+++ b/.github/workflows/build_tests.yml
@@ -2,9 +2,9 @@ name: build
on:
push:
- branches:
- - '**'
+
pull_request:
+
create:
branches:
- 'master'
@@ -49,6 +49,34 @@ jobs:
codecov
+ linux-minimal-deps:
+
+ runs-on: ubuntu-latest
+ strategy:
+ max-parallel: 4
+ matrix:
+ python-version: [3.6]
+
+ steps:
+ - uses: actions/checkout@v1
+ - name: Set up Python ${{ matrix.python-version }}
+ uses: actions/setup-python@v1
+ with:
+ python-version: ${{ matrix.python-version }}
+ - name: Install dependencies
+ run: |
+ python -m pip install --upgrade pip
+ pip install -r .github/requirements_strict.txt
+ pip install pytest
+ pip install -U "sklearn"
+ - name: Install POT
+ run: |
+ pip install -e .
+ - name: Run tests
+ run: |
+ python -m pytest -v test/ ot/ --ignore ot/gpu/
+
+
macos:
runs-on: macOS-latest
strategy: