summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosé Padilla <jpadilla@webapplicate.com>2020-04-08 00:29:19 -0400
committerJosé Padilla <jpadilla@webapplicate.com>2020-04-08 00:30:39 -0400
commitab6332b0c81e36bbd004e6104e064985a75e4e4a (patch)
tree381c9ec080d2a43990595f09ac91c0fd6c48205e
parent0f560087534f48222fb839780b2665c315627344 (diff)
downloadpyjwt-ab6332b0c81e36bbd004e6104e064985a75e4e4a.tar.gz
Test in windows
-rw-r--r--.github/workflows/main.yml13
-rw-r--r--tox.ini10
2 files changed, 15 insertions, 8 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 127d177..4146a39 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:
@@ -28,7 +29,6 @@
python-version: "${{ matrix.python-version }}"
- name: "Install dependencies"
run: |
- set -xe
python -VV
python -m site
python -m pip install --upgrade pip setuptools wheel
@@ -36,15 +36,16 @@
- 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 7a140bc..6c1bd07 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