From 72dc1d57bb0b94603b7d08bd5830f8391dd59502 Mon Sep 17 00:00:00 2001 From: Alexandre Gramfort Date: Tue, 21 Apr 2020 23:07:16 +0200 Subject: fix GH Action badge in readme (#153) --- .github/workflows/pythonpackage.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.github') diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml index 19527c3..af6efb7 100644 --- a/.github/workflows/pythonpackage.yml +++ b/.github/workflows/pythonpackage.yml @@ -1,4 +1,4 @@ -name: Test Package +name: build on: push: -- cgit v1.2.3 From 2a8c86cdad1948ad3c907ad8de2ec14d0d689a2e Mon Sep 17 00:00:00 2001 From: Rémi Flamary Date: Wed, 22 Apr 2020 11:05:45 +0200 Subject: add flake8 fail to github actions --- .github/workflows/pythonpackage.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.github') diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml index af6efb7..394f453 100644 --- a/.github/workflows/pythonpackage.yml +++ b/.github/workflows/pythonpackage.yml @@ -36,7 +36,7 @@ jobs: # stop the build if there are Python syntax errors or undefined names flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide - flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + flake8 examples/ ot/ test/ --count --max-line-length=127 --statistics - name: Install POT run: | pip install -e . -- cgit v1.2.3 From 249d46c2aa29e7f975e3acbe8c9ae29a1dfc5490 Mon Sep 17 00:00:00 2001 From: Rémi Flamary Date: Wed, 22 Apr 2020 11:17:08 +0200 Subject: rename circleci redicrector action --- .github/workflows/main.yml | 1 + 1 file changed, 1 insertion(+) (limited to '.github') diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7153fe6..ae7bfca 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,3 +1,4 @@ +name: circleci-redirector on: [status] jobs: circleci_artifacts_redirector_job: -- cgit v1.2.3 From c60cb3bcfd3ff67113a8d8a84230ffd263b72c6e Mon Sep 17 00:00:00 2001 From: Rémi Flamary Date: Wed, 22 Apr 2020 15:38:39 +0200 Subject: add wheel build action --- .github/workflows/build_wheels.yml | 41 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/build_wheels.yml (limited to '.github') diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml new file mode 100644 index 0000000..5ade5d7 --- /dev/null +++ b/.github/workflows/build_wheels.yml @@ -0,0 +1,41 @@ +name: Build dist and wheels + +on: + push: + branches: + - 'build_wheels' + + +jobs: + build_linux: + + runs-on: ubuntu-latest + strategy: + max-parallel: 4 + matrix: + python-version: [3.5, 3.6, 3.7, 3.8] + + 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 + + - name: Install cibuildwheel + run: | + python -m pip install cibuildwheel==1.3.0 + + - name: Build wheel + run: | + python -m cibuildwheel --output-dir wheelhouse + + - uses: actions/upload-artifact@v1 + with: + name: wheels + path: ./wheelhouse \ No newline at end of file -- cgit v1.2.3 From 4aa020055a684ec8cd2360ecf47bd85f94e63e9e Mon Sep 17 00:00:00 2001 From: Rémi Flamary Date: Wed, 22 Apr 2020 15:42:56 +0200 Subject: force install cython --- .github/workflows/build_wheels.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.github') diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index 5ade5d7..d92c7c5 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -26,7 +26,7 @@ jobs: run: | python -m pip install --upgrade pip pip install -r requirements.txt - + pip install -U "cython" - name: Install cibuildwheel run: | python -m pip install cibuildwheel==1.3.0 -- cgit v1.2.3 From de5ff644d282660f34a8fad051879eca7cdc87a3 Mon Sep 17 00:00:00 2001 From: Rémi Flamary Date: Wed, 22 Apr 2020 15:47:56 +0200 Subject: propoer ciwb before build --- .github/workflows/build_wheels.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to '.github') diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index d92c7c5..9938698 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -13,7 +13,7 @@ jobs: strategy: max-parallel: 4 matrix: - python-version: [3.5, 3.6, 3.7, 3.8] + python-version: [3.8] steps: - uses: actions/checkout@v1 @@ -32,6 +32,8 @@ jobs: python -m pip install cibuildwheel==1.3.0 - name: Build wheel + env: + CIBW_BEFORE_BUILD: "pip install numpy cython" run: | python -m cibuildwheel --output-dir wheelhouse -- cgit v1.2.3 From b8c36c9a4f807b4743c296e84f3f0896a778619e Mon Sep 17 00:00:00 2001 From: Rémi Flamary Date: Wed, 22 Apr 2020 16:15:44 +0200 Subject: test build wheels windows --- .github/workflows/build_wheels.yml | 39 ++++++++++++++++++++++++++++++++------ 1 file changed, 33 insertions(+), 6 deletions(-) (limited to '.github') diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index 9938698..ed8bd3d 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -10,17 +10,44 @@ jobs: build_linux: runs-on: ubuntu-latest - strategy: - max-parallel: 4 - matrix: - python-version: [3.8] steps: - uses: actions/checkout@v1 - - name: Set up Python ${{ matrix.python-version }} + - name: Set up Python 3.8 uses: actions/setup-python@v1 with: - python-version: ${{ matrix.python-version }} + python-version: 3.8 + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + pip install -U "cython" + - name: Install cibuildwheel + run: | + python -m pip install cibuildwheel==1.3.0 + + - name: Build wheel + env: + CIBW_BEFORE_BUILD: "pip install numpy cython" + run: | + python -m cibuildwheel --output-dir wheelhouse + + - uses: actions/upload-artifact@v1 + with: + name: wheels + path: ./wheelhouse + + build_windows: + + runs-on: windows-2019 + + steps: + - uses: actions/checkout@v1 + - name: Set up Python 3.8 + uses: actions/setup-python@v1 + with: + python-version: 3.8 - name: Install dependencies run: | -- cgit v1.2.3 From d20ce8c4e6ef723bec0ee4f06b285dff8da8c6f7 Mon Sep 17 00:00:00 2001 From: Rémi Flamary Date: Wed, 22 Apr 2020 16:21:04 +0200 Subject: debug build wheels windows --- .github/workflows/build_wheels.yml | 44 ++++++++++---------------------------- 1 file changed, 11 insertions(+), 33 deletions(-) (limited to '.github') diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index ed8bd3d..4874d84 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -7,9 +7,12 @@ on: jobs: - build_linux: - - runs-on: ubuntu-latest + build_wheels: + name: Build wheel on ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-18.04, windows-latest, macos-latest] steps: - uses: actions/checkout@v1 @@ -23,40 +26,15 @@ jobs: python -m pip install --upgrade pip pip install -r requirements.txt pip install -U "cython" + - name: Install cibuildwheel run: | python -m pip install cibuildwheel==1.3.0 - - name: Build wheel - env: - CIBW_BEFORE_BUILD: "pip install numpy cython" - run: | - python -m cibuildwheel --output-dir wheelhouse - - - uses: actions/upload-artifact@v1 - with: - name: wheels - path: ./wheelhouse - - build_windows: - - runs-on: windows-2019 - - steps: - - uses: actions/checkout@v1 - - name: Set up Python 3.8 - uses: actions/setup-python@v1 - with: - python-version: 3.8 - - - name: Install dependencies + - name: Install Visual C++ for Python 2.7 + if: startsWith(matrix.os, 'windows') run: | - python -m pip install --upgrade pip - pip install -r requirements.txt - pip install -U "cython" - - name: Install cibuildwheel - run: | - python -m pip install cibuildwheel==1.3.0 + choco install vcpython27 -f -y - name: Build wheel env: @@ -67,4 +45,4 @@ jobs: - uses: actions/upload-artifact@v1 with: name: wheels - path: ./wheelhouse \ No newline at end of file + path: ./wheelhouse -- cgit v1.2.3 From 57153c8c6a30d044690b46f77ea5c584f5e5d088 Mon Sep 17 00:00:00 2001 From: Rémi Flamary Date: Wed, 22 Apr 2020 16:34:26 +0200 Subject: remove macosx --- .github/workflows/build_wheels.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.github') diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index 4874d84..9f671bf 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -12,7 +12,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-18.04, windows-latest, macos-latest] + os: [ubuntu-18.04, windows-latest] steps: - uses: actions/checkout@v1 -- cgit v1.2.3 From 6bcd9e6b988c2856b910a9c87663e4a0cbd1ea19 Mon Sep 17 00:00:00 2001 From: Rémi Flamary Date: Wed, 22 Apr 2020 20:09:14 +0200 Subject: stick to linux wheels for current release --- .github/workflows/build_wheels.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to '.github') diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index 9f671bf..b11cfaa 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -8,11 +8,12 @@ on: jobs: build_wheels: - name: Build wheel on ${{ matrix.os }} + name: ${{ matrix.os }} runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-18.04, windows-latest] + os: [ubuntu-18.04] + # macosx-latest, windows-latest steps: - uses: actions/checkout@v1 -- cgit v1.2.3 From ebf8fe9d1c3ff7885c00f695812964faf119486c Mon Sep 17 00:00:00 2001 From: Rémi Flamary Date: Thu, 23 Apr 2020 09:30:24 +0200 Subject: set action to release event --- .github/workflows/build_wheels.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to '.github') diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index b11cfaa..7c13c33 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -1,10 +1,7 @@ name: Build dist and wheels on: - push: - branches: - - 'build_wheels' - + release: jobs: build_wheels: -- cgit v1.2.3