Skip to content

Commit

Permalink
Try with pytest-timeout, refs #47
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed Feb 7, 2023
1 parent e0a4d6e commit 5492b96
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ jobs:
env:
POSTGRESQL_TEST_DB_CONNECTION: postgresql://postgres:[email protected]:${{ job.services.postgres.ports['5432'] }}/test_db_to_sqlite
MYSQL_TEST_DB_CONNECTION: mysql://[email protected]:${{ job.services.mysql.ports['3306'] }}/test_db_to_sqlite
run: pytest -vv
run: |-
pytest -vv --timeout=3 --timeout_method=thread
deploy:
runs-on: ubuntu-latest
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,5 @@ jobs:
env:
POSTGRESQL_TEST_DB_CONNECTION: postgresql://postgres:[email protected]:${{ job.services.postgres.ports['5432'] }}/test_db_to_sqlite
MYSQL_TEST_DB_CONNECTION: mysql://[email protected]:${{ job.services.mysql.ports['3306'] }}/test_db_to_sqlite
run: pytest -vv
run: |-
pytest -vv --timeout=3 --timeout_method=thread
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def get_long_description():
packages=find_packages(),
install_requires=["sqlalchemy", "sqlite-utils>=2.9.1", "click"],
extras_require={
"test": ["pytest"],
"test": ["pytest", "pytest-timeout"],
"test_mysql": ["pytest", "mysqlclient"],
"test_postgresql": ["pytest", "psycopg2"],
"mysql": ["mysqlclient"],
Expand Down

0 comments on commit 5492b96

Please sign in to comment.