Run CI tests on Windows. (#393)

* Updated minimum twisted to 19.7

Co-authored-by: Michael Käufl <django@c.michael-kaeufl.de>
This commit is contained in:
Carlton Gibson 2021-11-09 20:12:29 +01:00 committed by GitHub
parent b62e58a023
commit 6a5093982c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 5 deletions

View File

@ -8,10 +8,13 @@ on:
jobs: jobs:
tests: tests:
runs-on: ubuntu-latest runs-on: ${{ matrix.os }}-latest
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
os:
- ubuntu
- windows
python-version: python-version:
- "3.6" - "3.6"
- "3.7" - "3.7"

View File

@ -22,7 +22,7 @@ setup(
package_dir={"twisted": "daphne/twisted"}, package_dir={"twisted": "daphne/twisted"},
packages=find_packages() + ["twisted.plugins"], packages=find_packages() + ["twisted.plugins"],
include_package_data=True, include_package_data=True,
install_requires=["twisted[tls]>=18.7", "autobahn>=0.18", "asgiref>=3.2.10,<4"], install_requires=["twisted[tls]>=19.7", "autobahn>=0.18", "asgiref>=3.2.10,<4"],
python_requires=">=3.6", python_requires=">=3.6",
setup_requires=["pytest-runner"], setup_requires=["pytest-runner"],
extras_require={"tests": ["hypothesis", "pytest", "pytest-asyncio"]}, extras_require={"tests": ["hypothesis", "pytest", "pytest-asyncio"]},

View File

@ -1,6 +1,6 @@
[tox] [tox]
envlist = envlist =
py{36,37,38,39,310}-twisted{187,latest} py{36,37,38,39,310}-twisted{197,latest}
[testenv] [testenv]
usedevelop = true usedevelop = true
@ -8,5 +8,5 @@ extras = tests
commands = commands =
pytest -v {posargs} pytest -v {posargs}
deps = deps =
twisted187: twisted==18.7.0 twisted187: twisted==19.7.0
twistedlatest: twisted>=20.3.0 twistedlatest: twisted>=20.3.0