From 6a5093982ca1eaffbc41f0114ac5bea7cb3902be Mon Sep 17 00:00:00 2001 From: Carlton Gibson Date: Tue, 9 Nov 2021 20:12:29 +0100 Subject: [PATCH] Run CI tests on Windows. (#393) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Updated minimum twisted to 19.7 Co-authored-by: Michael Käufl --- .github/workflows/tests.yml | 7 +++++-- setup.py | 2 +- tox.ini | 4 ++-- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 3f81964..5a3d042 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -3,15 +3,18 @@ name: Tests on: push: branches: - - master + - master pull_request: jobs: tests: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }}-latest strategy: fail-fast: false matrix: + os: + - ubuntu + - windows python-version: - "3.6" - "3.7" diff --git a/setup.py b/setup.py index 1ea8341..214df0d 100755 --- a/setup.py +++ b/setup.py @@ -22,7 +22,7 @@ setup( package_dir={"twisted": "daphne/twisted"}, packages=find_packages() + ["twisted.plugins"], 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", setup_requires=["pytest-runner"], extras_require={"tests": ["hypothesis", "pytest", "pytest-asyncio"]}, diff --git a/tox.ini b/tox.ini index 3bba274..da7d4d9 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] envlist = - py{36,37,38,39,310}-twisted{187,latest} + py{36,37,38,39,310}-twisted{197,latest} [testenv] usedevelop = true @@ -8,5 +8,5 @@ extras = tests commands = pytest -v {posargs} deps = - twisted187: twisted==18.7.0 + twisted187: twisted==19.7.0 twistedlatest: twisted>=20.3.0