Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timeout test is stalling #668

Merged
merged 5 commits into from
Feb 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/unittests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
jobs:
unittests:
env:
RUN_TEST: pytest -v -n auto spaghetti --cov spaghetti --doctest-modules --cov-config .coveragerc --cov-report xml --color yes --cov-append --cov-report term-missing
RUN_TEST: pytest -v -n auto spaghetti --cov spaghetti --doctest-modules --cov-config .coveragerc --cov-report xml --color yes --cov-append --cov-report term-missing --timeout=60
name: ${{ matrix.os }}, ${{ matrix.environment-file }}
runs-on: ${{ matrix.os }}
timeout-minutes: 30
Expand Down
1 change: 1 addition & 0 deletions ci/310-BASE.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ dependencies:
- codecov
- pytest
- pytest-cov
- pytest-timeout
- pytest-xdist
1 change: 1 addition & 0 deletions ci/310-DEV.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ dependencies:
- codecov
- pytest
- pytest-cov
- pytest-timeout
- pytest-xdist
# optional
- geopandas>=0.9.0
Expand Down
1 change: 1 addition & 0 deletions ci/310.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ dependencies:
- codecov
- pytest
- pytest-cov
- pytest-timeout
- pytest-xdist
# optional
- geopandas>=0.7.0
Expand Down
1 change: 1 addition & 0 deletions ci/37.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ dependencies:
- codecov
- pytest
- pytest-cov
- pytest-timeout
- pytest-xdist
# optional
- geopandas>=0.7.0
1 change: 1 addition & 0 deletions ci/38.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ dependencies:
- codecov
- pytest
- pytest-cov
- pytest-timeout
- pytest-xdist
# optional
- geopandas>=0.7.0
1 change: 1 addition & 0 deletions ci/39.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ dependencies:
- codecov
- pytest
- pytest-cov
- pytest-timeout
- pytest-xdist
# optional
- geopandas>=0.7.0
Expand Down
1 change: 1 addition & 0 deletions requirements_tests.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
pytest
pytest-cov
pytest-timeout
pytest-xdist
codecov
twine
Expand Down
2 changes: 2 additions & 0 deletions spaghetti/tests/network_unittest_classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -871,6 +871,8 @@ def test_build_chains(self):
self.assertEqual(v_observed, v_known)
self.assertEqual(h_observed, h_known)

# this test is causing CI to stall in some cases
# see https://github.com/pysal/spaghetti/issues/666
def test_squared_distance_point_link(self):
point, link = (1, 1), ((0, 0), (2, 0))
sqrd_nearp = self.util.squared_distance_point_link(point, link)
Expand Down