From 587f10c0cabf9a6e2aca6bb1a6847672f5734065 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Sat, 10 Oct 2020 00:13:27 +0300 Subject: [PATCH 1/3] Test and build wheel on Windows on GitHub Actions --- .github/workflows/test.yml | 57 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..0167ebd5 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,57 @@ +name: Test + +on: [push, pull_request] + +env: + FORCE_COLOR: 1 + +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["3.5", "3.6", "3.7", "3.8", "3.9"] + os: [windows-latest] + + steps: + - uses: actions/checkout@v2 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + + - name: Get pip cache dir + id: pip-cache + run: | + echo "::set-output name=dir::$(pip cache dir)" + + - name: Cache + uses: actions/cache@v2 + with: + path: ${{ steps.pip-cache.outputs.dir }} + key: + ${{ matrix.os }}-${{ matrix.python-version }}-${{ hashFiles('**/setup.py') }} + restore-keys: | + ${{ matrix.os }}-${{ matrix.python-version }}- + + - name: Install dependencies + run: | + python -m pip install -U pip + python -m pip install -U wheel + + - name: Test + shell: bash + run: | + python setup.py test + + - name: Build wheel + shell: bash + run: | + python setup.py bdist_wheel + + - uses: actions/upload-artifact@v2 + with: + name: wheels + path: dist\*.whl From 3a2053fdde43d3d4e8c64d7df41dc7c4581cd169 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Sat, 10 Oct 2020 00:36:09 +0300 Subject: [PATCH 2/3] For both x86 and x64 --- .github/workflows/test.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0167ebd5..444b8d99 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,6 +12,7 @@ jobs: fail-fast: false matrix: python-version: ["3.5", "3.6", "3.7", "3.8", "3.9"] + architecture: ["x86", "x64"] os: [windows-latest] steps: @@ -21,6 +22,7 @@ jobs: uses: actions/setup-python@v2 with: python-version: ${{ matrix.python-version }} + architecture: ${{ matrix.architecture }} - name: Get pip cache dir id: pip-cache @@ -32,9 +34,9 @@ jobs: with: path: ${{ steps.pip-cache.outputs.dir }} key: - ${{ matrix.os }}-${{ matrix.python-version }}-${{ hashFiles('**/setup.py') }} + ${{ matrix.os }}-${{ matrix.architecture }}-${{ matrix.python-version }}-${{ hashFiles('**/setup.py') }} restore-keys: | - ${{ matrix.os }}-${{ matrix.python-version }}- + ${{ matrix.os }}-${{ matrix.architecture }}-${{ matrix.python-version }}- - name: Install dependencies run: | From 6df7335500b6cc03e3a249706ed6545426557671 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Sun, 10 Oct 2021 21:25:41 +0300 Subject: [PATCH 3/3] Add support for Python 3.10 --- .github/workflows/test.yml | 2 +- .travis.yml | 11 ++++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 444b8d99..8f891ed1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,7 +11,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.5", "3.6", "3.7", "3.8", "3.9"] + python-version: ["3.5", "3.6", "3.7", "3.8", "3.9", "3.10"] architecture: ["x86", "x64"] os: [windows-latest] diff --git a/.travis.yml b/.travis.yml index 5fbbe715..b03bb4af 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,11 +16,12 @@ arch: - arm64 python: - - 3.5 - - 3.6 - - 3.7 - - 3.8 - - 3.9-dev + - "3.5" + - "3.6" + - "3.7" + - "3.8" + - "3.9" + - "3.10-dev" script: - pytest