Skip to content
This repository has been archived by the owner on Jul 31, 2024. It is now read-only.

Commit

Permalink
Rerun tests on fail (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
vsakkas authored Nov 16, 2023
1 parent 4308b21 commit 4a7abd0
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 52 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ jobs:
run: poetry run mypy --ignore-missing-imports bard/

- name: Run tests
run: poetry run pytest --cov
run: poetry run pytest --cov --reruns 2
118 changes: 67 additions & 51 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ pytest-asyncio = "^0.21.1"
pytest-cov = "^4.1.0"
thefuzz = { extras = ["speedup"], version = "^0.20.0" }

[tool.poetry.group.ci.dependencies]
pytest-rerunfailures = "^12.0"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

0 comments on commit 4a7abd0

Please sign in to comment.