From 0b2d808aaebb1cab60a272ea7901d5f77df43a9f Mon Sep 17 00:00:00 2001 From: Alexandre Gramfort Date: Tue, 21 Apr 2020 17:20:46 +0200 Subject: Windows CI (#148) * add Windows build on GH actions --- .github/workflows/pythonpackage.yml | 55 ++++++++++++++++++++++++++++++++++++- 1 file changed, 54 insertions(+), 1 deletion(-) (limited to '.github') 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 -- cgit v1.2.3