diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..8f891ed1 --- /dev/null +++ b/.github/workflows/test.yml @@ -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 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