diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml index d968755..17d32d7 100644 --- a/.github/workflows/pythonpackage.yml +++ b/.github/workflows/pythonpackage.yml @@ -7,7 +7,7 @@ jobs: strategy: matrix: - os: ["ubuntu-latest", "macos-latest", "windows-latest"] + os: ["ubuntu-latest", "windows-latest"] python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11"] # use Ubuntu 20.04 for Python 3.6 exclude: @@ -31,12 +31,13 @@ jobs: python -m pip install --upgrade pip # there are currently no dependencies # pip install -r requirements.txt + - name: Install flake8 + run: pip install flake8 - name: Lint with flake8 run: | - pip install flake8 # stop the build if flake reports any issues flake8 . --statistics --show-source + - name: Install pytest + run: pip install pytest pytest-timeout - name: Test with pytest - run: | - pip install pytest - pytest --run-integration-tests + run: pytest --run-integration-tests diff --git a/README.md b/README.md index 9e0a96f..82d4217 100644 --- a/README.md +++ b/README.md @@ -218,7 +218,7 @@ Some tools are used to help with development of this library. These are [flake8] Install those tools with pip: ``` -pip install flake8 pytest coverage +pip install flake8 pytest pytest-timeout coverage ``` `flake8` checks for formatting issues and can be run with `flake8` or `python -m flake8` in the root directory of this repository. diff --git a/integration_test.py b/integration_test.py index 446c711..576010a 100644 --- a/integration_test.py +++ b/integration_test.py @@ -15,6 +15,7 @@ from collections import OrderedDict +@pytest.mark.timeout(5) @pytest.mark.integration_test def test_integration(): logging.basicConfig(level=logging.DEBUG) # enable logging of sacn module