add timeout to pytest
MODIFY
.github/workflows/main.yaml
.github/workflows/main.yaml
@@ -52,7 +52,7 @@ jobs:
- name: Run Tests
shell: bash -l {0}
run: |
- py.test tests -v --cov=pangeo_forge --cov-config .coveragerc --cov-report term-missing
+ py.test tests --timeout 30 -v --cov=pangeo_forge --cov-config .coveragerc --cov-report term-missing
coverage xml
- name: Codecov
uses: codecov/codecov-action@v1

MODIFY
ci/py3.7.yml
ci/py3.7.yml
@@ -36,3 +36,4 @@ dependencies:
- git+https://github.com/rabernat/xarray.git@zarr-chunk-fixes
- git+https://github.com/pangeo-data/rechunker.git@master
- git+https://github.com/intake/filesystem_spec.git@master
+ - pytest-timeout

MODIFY
ci/py3.8.yml
ci/py3.8.yml
@@ -36,3 +36,4 @@ dependencies:
- git+https://github.com/rabernat/xarray.git@zarr-chunk-fixes
- git+https://github.com/pangeo-data/rechunker.git@master
- git+https://github.com/intake/filesystem_spec.git@master
+ - pytest-timeout

MODIFY
ci/py3.9.yml
ci/py3.9.yml
@@ -37,3 +37,4 @@ dependencies:
- git+https://github.com/rabernat/xarray.git@zarr-chunk-fixes
- git+https://github.com/pangeo-data/rechunker.git@master
- git+https://github.com/intake/filesystem_spec.git@master
+ - pytest-timeout

add timeout to pytest