Skip to content

Commit ab6332b

Browse files
committed
Test in windows
1 parent 0f56008 commit ab6332b

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,14 @@
1212

1313
jobs:
1414
tests:
15-
name: "Python ${{ matrix.python-version }}"
16-
runs-on: "ubuntu-latest"
15+
name: "Python ${{ matrix.python-version }} on ${{ matrix.platform }}"
16+
runs-on: "${{ matrix.platform }}"
1717
env:
1818
USING_COVERAGE: '3.8'
1919

2020
strategy:
2121
matrix:
22+
platform: ["ubuntu-latest", "windows-latest"]
2223
python-version: ["3.5", "3.6", "3.7", "3.8"]
2324

2425
steps:
@@ -28,23 +29,23 @@
2829
python-version: "${{ matrix.python-version }}"
2930
- name: "Install dependencies"
3031
run: |
31-
set -xe
3232
python -VV
3333
python -m site
3434
python -m pip install --upgrade pip setuptools wheel
3535
python -m pip install --upgrade coverage[toml] virtualenv tox tox-gh-actions
3636
3737
- name: "Run tox targets for ${{ matrix.python-version }}"
3838
run: "python -m tox"
39+
env:
40+
PLATFORM: ${{ matrix.platform }}
3941

4042
- name: "Combine coverage"
4143
run: |
42-
set -xe
4344
python -m coverage combine
4445
python -m coverage xml
45-
if: "contains(env.USING_COVERAGE, matrix.python-version)"
46+
if: "contains(env.USING_COVERAGE, matrix.python-version) && matrix.platform == 'ubuntu-latest'"
4647
- name: "Upload coverage to Codecov"
47-
if: "contains(env.USING_COVERAGE, matrix.python-version)"
48+
if: "contains(env.USING_COVERAGE, matrix.python-version) && matrix.platform == 'ubuntu-latest'"
4849
uses: "codecov/codecov-action@v1"
4950
with:
5051
fail_ci_if_error: true

tox.ini

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,18 @@ python =
1616
3.8: py38, lint, manifest, typing
1717

1818

19+
[gh-actions:env]
20+
PLATFORM =
21+
ubuntu-latest: linux
22+
windows-latest: windows
23+
24+
1925
[tox]
2026
envlist =
2127
lint
2228
typing
23-
py{35,36,37,38}-crypto
24-
py{35,36,37,38}-nocrypto
29+
py{35,36,37,38}-crypto-{linux,windows}
30+
py{35,36,37,38}-nocrypto-{linux,windows}
2531
manifest
2632
docs
2733
pypi-description

0 commit comments

Comments
 (0)