From db728dda7619701b5bdb7869f72b3d04d51a67d8 Mon Sep 17 00:00:00 2001 From: ppinchuk Date: Wed, 14 Aug 2024 11:07:07 -0600 Subject: [PATCH] Add `pytest-timeout` --- .github/workflows/pull_request_tests.yml | 1 + setup.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pull_request_tests.yml b/.github/workflows/pull_request_tests.yml index cbb8f29d..56517637 100644 --- a/.github/workflows/pull_request_tests.yml +++ b/.github/workflows/pull_request_tests.yml @@ -28,6 +28,7 @@ jobs: pip install --upgrade pip pip install pytest pip install pytest-cov + pip install pytest-timeout pip install -e . - name: Run pytest and Generate coverage report run: | diff --git a/setup.py b/setup.py index 93f15176..4dc10e80 100644 --- a/setup.py +++ b/setup.py @@ -41,7 +41,7 @@ def run(self): with open("requirements.txt") as f: install_requires = f.readlines() -test_requires = ["pytest>=5.2", ] +test_requires = ["pytest>=5.2", "pytest-timeout>=2.3.1"] dev_requires = ["flake8", "pre-commit", "pylint", "hsds>=0.8.4"] description = ("National Renewable Energy Laboratory's (NREL's) REsource " "eXtraction tool: rex")