From 674131f870817a54e37b90ebf5633df019e5acd5 Mon Sep 17 00:00:00 2001 From: Grzegorz Bokota Date: Wed, 13 Jan 2021 12:47:49 +0100 Subject: [PATCH] add timeout to test --- azure-pipelines.yaml | 6 +++--- requirements_test.txt | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/azure-pipelines.yaml b/azure-pipelines.yaml index 25fa437..c2f5b16 100644 --- a/azure-pipelines.yaml +++ b/azure-pipelines.yaml @@ -1,5 +1,5 @@ variables: - CIBW_TEST_COMMAND: python -m pytest {project}/imagecodecs_src//tests/ + CIBW_TEST_COMMAND: python -m pytest {project}/imagecodecs_src//tests/ --timeout=300 CIBW_TEST_REQUIRES: -r requirements_azure.txt CIBW_MANYLINUX_X86_64_IMAGE: bokota/imagecodecs_64:2021.1.12 CIBW_MANYLINUX_I686_IMAGE: bokota/imagecodecs_i686:2021.1.12 @@ -69,7 +69,7 @@ stages: - script: pip install -e imagecodecs_src displayName: "install package" - - script: pytest imagecodecs_src/tests + - script: pytest imagecodecs_src/tests --timeout=300 displayName: "run test" - job: linux_wheel @@ -227,7 +227,7 @@ stages: - bash: pip install ${CIBW_TEST_REQUIRES} displayName: "install test dependencies" - - script: pytest imagecodecs_src/tests + - script: pytest imagecodecs_src/tests --timeout=300 displayName: "run test" - job: macos_wheel diff --git a/requirements_test.txt b/requirements_test.txt index ec90edc..2fc2838 100644 --- a/requirements_test.txt +++ b/requirements_test.txt @@ -11,3 +11,4 @@ git+https://github.com/Czaki/bitshuffle@no_hdf5 Brotli==1.0.7 zopflipy==1.4 python-snappy==0.5.4 +pytest-timeout