Skip to content

Commit

Permalink
Test in windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jpadilla committed Apr 8, 2020
1 parent 0f56008 commit 11b371b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down
10 changes: 8 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 11b371b

Please sign in to comment.