diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 3d93956b..9be8af41 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -13,10 +13,11 @@ on: jobs: build: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} strategy: matrix: + os: [ubuntu-latest, macos-latest, windows-latest] python-version: [3.6, 3.7, 3.8] steps: @@ -25,6 +26,8 @@ jobs: uses: actions/setup-python@v2 with: python-version: ${{ matrix.python-version }} + - name: Display Python version + run: python -c "import sys; print(sys.version)" - name: Install dependencies run: | python -m pip install --upgrade pip @@ -37,4 +40,4 @@ jobs: flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - name: Test with pytest run: | - pytest -vv + python -m pytest -vv diff --git a/tests/conftest.py b/tests/conftest.py index a88f3c72..1d7339f6 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -36,7 +36,7 @@ if sys.platform.startswith("win") and sys.version_info < (3, 8): loop = asyncio.ProactorEventLoop() asyncio.set_event_loop(loop) yield loop - loop.close() + asyncio.set_event_loop(None) @pytest.fixture(scope='function')