diff options
author | Alexandre Gramfort <alexandre.gramfort@m4x.org> | 2020-04-21 17:20:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-21 17:20:46 +0200 |
commit | 0b2d808aaebb1cab60a272ea7901d5f77df43a9f (patch) | |
tree | 61755f7c89ef575126dcc01d3d77fc6aaaf35267 | |
parent | e5931823630010bb5a99586accf09606b0a3bf90 (diff) |
Windows CI (#148)
* add Windows build on GH actions
-rw-r--r-- | .github/workflows/pythonpackage.yml | 55 | ||||
-rw-r--r-- | README.md | 1 |
2 files changed, 55 insertions, 1 deletions
diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml index c4b0165..19527c3 100644 --- a/.github/workflows/pythonpackage.yml +++ b/.github/workflows/pythonpackage.yml @@ -11,7 +11,7 @@ on: - '**' jobs: - build: + linux: runs-on: ubuntu-latest strategy: @@ -46,3 +46,56 @@ jobs: - name: Upload codecov run: | codecov + + # macos: + # runs-on: macOS-latest + # strategy: + # max-parallel: 4 + # matrix: + # python-version: [3.7] + + # 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 requirements.txt + # pip install pytest "pytest-cov<2.6" + # pip install -U "sklearn" + # - name: Install POT + # run: | + # pip install -e . + # - name: Run tests + # run: | + # python -m pytest -v test/ ot/ --doctest-modules --ignore ot/gpu/ --cov=ot + + + windows: + runs-on: windows-2019 + strategy: + max-parallel: 4 + matrix: + python-version: [3.7] + + 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 requirements.txt + pip install pytest "pytest-cov<2.6" + pip install -U "sklearn" + - name: Install POT + run: | + pip install -e . + - name: Run tests + run: | + python -m pytest -v test/ ot/ --doctest-modules --ignore ot/gpu/ --cov=ot @@ -3,6 +3,7 @@ [![PyPI version](https://badge.fury.io/py/POT.svg)](https://badge.fury.io/py/POT) [![Anaconda Cloud](https://anaconda.org/conda-forge/pot/badges/version.svg)](https://anaconda.org/conda-forge/pot) [![Build Status](https://travis-ci.org/PythonOT/POT.svg?branch=master)](https://travis-ci.org/PythonOT/POT) +[![Build Status](https://github.com/PythonOT/POT/workflows/Linux%7CWin%7CMacOS/badge.svg)](https://github.com/PythonOT/POT/actions) [![Codecov Status](https://codecov.io/gh/PythonOT/POT/branch/master/graph/badge.svg)](https://codecov.io/gh/PythonOT/POT) [![Documentation Status](https://readthedocs.org/projects/pot/badge/?version=latest)](http://pot.readthedocs.io/en/latest/?badge=latest) [![Downloads](https://pepy.tech/badge/pot)](https://pepy.tech/project/pot) |