Skip to content
This repository has been archived by the owner on Jul 5, 2023. It is now read-only.

Test and build wheels on Windows on GitHub Actions #148

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
59 changes: 59 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
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", "3.10"]
architecture: ["x86", "x64"]
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 }}
architecture: ${{ matrix.architecture }}

- 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.architecture }}-${{ matrix.python-version }}-${{ hashFiles('**/setup.py') }}
restore-keys: |
${{ matrix.os }}-${{ matrix.architecture }}-${{ 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
11 changes: 6 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down