1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-28 11:18:11 +00:00

Try to run tests for Windows and macOS.

This commit is contained in:
grossmj 2020-10-20 10:50:46 +10:30
parent 0500b28aea
commit 554404e6e7
2 changed files with 6 additions and 3 deletions

View File

@ -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

View File

@ -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')