Skip to content

Commit 0b2d808

Browse files
authored
Windows CI (#148)
* add Windows build on GH actions
1 parent e593182 commit 0b2d808

File tree

2 files changed

+55
-1
lines changed

2 files changed

+55
-1
lines changed

.github/workflows/pythonpackage.yml

Lines changed: 54 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
- '**'
1212

1313
jobs:
14-
build:
14+
linux:
1515

1616
runs-on: ubuntu-latest
1717
strategy:
@@ -46,3 +46,56 @@ jobs:
4646
- name: Upload codecov
4747
run: |
4848
codecov
49+
50+
# macos:
51+
# runs-on: macOS-latest
52+
# strategy:
53+
# max-parallel: 4
54+
# matrix:
55+
# python-version: [3.7]
56+
57+
# steps:
58+
# - uses: actions/checkout@v1
59+
# - name: Set up Python ${{ matrix.python-version }}
60+
# uses: actions/setup-python@v1
61+
# with:
62+
# python-version: ${{ matrix.python-version }}
63+
# - name: Install dependencies
64+
# run: |
65+
# python -m pip install --upgrade pip
66+
# pip install -r requirements.txt
67+
# pip install pytest "pytest-cov<2.6"
68+
# pip install -U "sklearn"
69+
# - name: Install POT
70+
# run: |
71+
# pip install -e .
72+
# - name: Run tests
73+
# run: |
74+
# python -m pytest -v test/ ot/ --doctest-modules --ignore ot/gpu/ --cov=ot
75+
76+
77+
windows:
78+
runs-on: windows-2019
79+
strategy:
80+
max-parallel: 4
81+
matrix:
82+
python-version: [3.7]
83+
84+
steps:
85+
- uses: actions/checkout@v1
86+
- name: Set up Python ${{ matrix.python-version }}
87+
uses: actions/setup-python@v1
88+
with:
89+
python-version: ${{ matrix.python-version }}
90+
- name: Install dependencies
91+
run: |
92+
python -m pip install --upgrade pip
93+
pip install -r requirements.txt
94+
pip install pytest "pytest-cov<2.6"
95+
pip install -U "sklearn"
96+
- name: Install POT
97+
run: |
98+
pip install -e .
99+
- name: Run tests
100+
run: |
101+
python -m pytest -v test/ ot/ --doctest-modules --ignore ot/gpu/ --cov=ot

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
[![PyPI version](https://badge.fury.io/py/POT.svg)](https://badge.fury.io/py/POT)
44
[![Anaconda Cloud](https://anaconda.org/conda-forge/pot/badges/version.svg)](https://anaconda.org/conda-forge/pot)
55
[![Build Status](https://travis-ci.org/PythonOT/POT.svg?branch=master)](https://travis-ci.org/PythonOT/POT)
6+
[![Build Status](https://github.com/PythonOT/POT/workflows/Linux%7CWin%7CMacOS/badge.svg)](https://github.com/PythonOT/POT/actions)
67
[![Codecov Status](https://codecov.io/gh/PythonOT/POT/branch/master/graph/badge.svg)](https://codecov.io/gh/PythonOT/POT)
78
[![Documentation Status](https://readthedocs.org/projects/pot/badge/?version=latest)](http://pot.readthedocs.io/en/latest/?badge=latest)
89
[![Downloads](https://pepy.tech/badge/pot)](https://pepy.tech/project/pot)

0 commit comments

Comments
 (0)