From 8a279046f49852c33648f6df28bd5e0811244cc3 Mon Sep 17 00:00:00 2001 From: Grzegorz Bokota Date: Wed, 1 Apr 2020 14:25:49 +0200 Subject: [PATCH 1/2] build wheels on github actions --- .github/workflows/wheel.yaml | 38 ++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/wheel.yaml diff --git a/.github/workflows/wheel.yaml b/.github/workflows/wheel.yaml new file mode 100644 index 00000000..8ba6aa71 --- /dev/null +++ b/.github/workflows/wheel.yaml @@ -0,0 +1,38 @@ +name: Wheels + +on: [push, pull_request] + +jobs: + build_wheels: + name: Build wheel on ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [ubuntu-18.04, windows-latest, macos-latest] + env: + CIBW_TEST_COMAND: pytest --pyargs numcodecs + CIBW_SKIP: "*27* pp*" + CIBW_ENVIRONMENT_MACOS: "MACOSX_DEPLOYMENT_TARGET=10.9" + + steps: + - uses: actions/checkout@v1 + with: + submodules: true + + - uses: actions/setup-python@v1 + name: Install Python + with: + python-version: '3.7' + + - 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 From cd98c41367d32e621fc9b49554e4a5764ce2b426 Mon Sep 17 00:00:00 2001 From: Grzegorz Bokota Date: Thu, 30 Jul 2020 09:53:43 +0200 Subject: [PATCH 2/2] fix typon in test command, add install of pytest --- .github/workflows/wheel.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/wheel.yaml b/.github/workflows/wheel.yaml index 8ba6aa71..71a25305 100644 --- a/.github/workflows/wheel.yaml +++ b/.github/workflows/wheel.yaml @@ -11,7 +11,8 @@ jobs: matrix: os: [ubuntu-18.04, windows-latest, macos-latest] env: - CIBW_TEST_COMAND: pytest --pyargs numcodecs + CIBW_TEST_COMMAND: pytest --pyargs numcodecs + CIBW_TEST_REQUIRES: pytest CIBW_SKIP: "*27* pp*" CIBW_ENVIRONMENT_MACOS: "MACOSX_DEPLOYMENT_TARGET=10.9"