summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Piercy <web@stevepiercy.com>2020-11-13 00:08:13 -0800
committerSteve Piercy <web@stevepiercy.com>2020-11-13 00:08:13 -0800
commitec385af30ec7e89bd45bd8276cafda16258c4701 (patch)
treec1749790f19509d190f6a6691de7704d82a42fca
parentff497aa8994c62c45c3a404fa42e95c778afe230 (diff)
downloadwebtest-ec385af30ec7e89bd45bd8276cafda16258c4701.tar.gz
Attempt Windows builds by running coverage via pytest
-rw-r--r--.github/workflows/ci-tests.yml6
-rw-r--r--setup.cfg1
-rw-r--r--tox.ini2
3 files changed, 8 insertions, 1 deletions
diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml
index 0e146c0..0d754fd 100644
--- a/.github/workflows/ci-tests.yml
+++ b/.github/workflows/ci-tests.yml
@@ -20,8 +20,14 @@ jobs:
- "3.9"
os:
- "ubuntu-latest"
+ - "windows-latest"
architecture:
- x64
+ - x86
+ exclude:
+ # Linux and macOS don't have x86 python
+ - os: "ubuntu-latest"
+ architecture: x86
name: "Python: ${{ matrix.py }}-${{ matrix.architecture }} on ${{ matrix.os }}"
runs-on: ${{ matrix.os }}
diff --git a/setup.cfg b/setup.cfg
index db6071a..b0545cc 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -26,4 +26,5 @@ addopts = -p no:warnings
--ignore=bootstrap.py
--ignore=examples/
--ignore=docs/conf.py
+ --cov -W always
doctest_optionflags= NORMALIZE_WHITESPACE ELLIPSIS
diff --git a/tox.ini b/tox.ini
index 4b03cff..6fc39dc 100644
--- a/tox.ini
+++ b/tox.ini
@@ -15,7 +15,7 @@ extras =
commands =
python --version
pip freeze
- coverage run {envbindir}/pytest -xv []
+ pytest --cov {posargs:}
coverage report --show-missing
[testenv:coverage]