Skip to content

Commit

Permalink
Fix GitHub action failure bug (fankiat#107)
Browse files Browse the repository at this point in the history
Remove numba caching, add pytest-rerunfailures for mitigiating flaky tests
  • Loading branch information
fankiat authored Dec 6, 2022
1 parent aeeb718 commit 68f30cf
Show file tree
Hide file tree
Showing 8 changed files with 378 additions and 187 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Setup MPI
uses: mpi4py/setup-mpi@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ formatting: format-codestyle

.PHONY: test
test:
poetry run mpiexec -n 4 pytest --with-mpi
poetry run mpiexec -n 4 pytest --cache-clear --reruns 2 --with-mpi

.PHONY: update-dev-deps
update-dev-deps:
Expand Down
20 changes: 18 additions & 2 deletions poetry.lock

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

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ pre-commit = "^2.19.0"
autoflake8 = "^0.4"
pytest = "^7.1"
pytest-mpi = "^0.6"
pytest-rerunfailures = "^10.3"

[tool.black]
# https://github.com/psf/black
target-version = ["py38"]
line-length = 88
color = true

exclude = '''
/(
Expand Down
Loading

0 comments on commit 68f30cf

Please sign in to comment.