diff options
author | Romain Tavenard <romain.tavenard@univ-rennes2.fr> | 2020-05-04 11:19:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-04 11:19:35 +0200 |
commit | e65c1f745cf2eacc6672727e7a3869efd8318768 (patch) | |
tree | 71590cd404f31806a5a99f0cf8faa8d9dca6b42e /.github | |
parent | 98d6cdcfa3a24ba07b9b4428250b7aee7e62f1ea (diff) |
[WIP] Improved docs and changed scipy version (#163)
* Improved docs and changed scipy version
* Fixed dependency bug in setup.py
* dependencies set to minimal versions for tests
* add requirements file
* added minimal version build for scipy (testing 1.2)
* bugfix in minimal deps build
* (yet another) bugfix in minimal deps build
* minimal deps now reflect README.md
* minimal deps: no autograd nor pymanopt
* refactored workflow names
* minimal deps: no doctests
* minimal deps: numpy 1.16
* trigger GH Actions on PR
* better merge
* re-add minimal-deps...
* bugfix in yaml
* enforce np>=1.16
* enforce scipy and cython versions too
* requires / install_requires
* requires / install_requires / requires
* setup_requires
Co-authored-by: RĂ©mi Flamary <remi.flamary@gmail.com>
Diffstat (limited to '.github')
-rw-r--r-- | .github/requirements_strict.txt | 7 | ||||
-rw-r--r-- | .github/workflows/build_tests.yml | 32 |
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: |