From 11b371b18a429b084e2680584cd36d92f2565415 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Padilla?= Date: Wed, 8 Apr 2020 00:29:19 -0400 Subject: [PATCH] Test in windows --- .github/workflows/main.yml | 11 +++++++---- tox.ini | 10 ++++++++-- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 127d1771b..c8bc3a687 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -12,13 +12,14 @@ jobs: tests: - name: "Python ${{ matrix.python-version }}" - runs-on: "ubuntu-latest" + name: "Python ${{ matrix.python-version }} on ${{ matrix.platform }}" + runs-on: "${{ matrix.platform }}" env: USING_COVERAGE: '3.8' strategy: matrix: + platform: ["ubuntu-latest", "windows-latest"] python-version: ["3.5", "3.6", "3.7", "3.8"] steps: @@ -36,15 +37,17 @@ - name: "Run tox targets for ${{ matrix.python-version }}" run: "python -m tox" + env: + PLATFORM: ${{ matrix.platform }} - name: "Combine coverage" run: | set -xe python -m coverage combine python -m coverage xml - if: "contains(env.USING_COVERAGE, matrix.python-version)" + if: "contains(env.USING_COVERAGE, matrix.python-version) && matrix.platform == 'ubuntu-latest'" - name: "Upload coverage to Codecov" - if: "contains(env.USING_COVERAGE, matrix.python-version)" + if: "contains(env.USING_COVERAGE, matrix.python-version) && matrix.platform == 'ubuntu-latest'" uses: "codecov/codecov-action@v1" with: fail_ci_if_error: true diff --git a/tox.ini b/tox.ini index 7a140bc63..6c1bd0730 100644 --- a/tox.ini +++ b/tox.ini @@ -16,12 +16,18 @@ python = 3.8: py38, lint, manifest, typing +[gh-actions:env] +PLATFORM = + ubuntu-latest: linux + windows-latest: windows + + [tox] envlist = lint typing - py{35,36,37,38}-crypto - py{35,36,37,38}-nocrypto + py{35,36,37,38}-crypto-{linux,windows} + py{35,36,37,38}-nocrypto-{linux,windows} manifest docs pypi-description