Skip to content

Commit 68f30cf

Browse files
authored
Fix GitHub action failure bug (#107)
Remove numba caching, add pytest-rerunfailures for mitigiating flaky tests
1 parent aeeb718 commit 68f30cf

File tree

8 files changed

+378
-187
lines changed

8 files changed

+378
-187
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
# Steps represent a sequence of tasks that will be executed as part of the job
2929
steps:
3030
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
31-
- uses: actions/checkout@v2
31+
- uses: actions/checkout@v3
3232
- name: Setup MPI
3333
uses: mpi4py/setup-mpi@v1
3434
with:

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ formatting: format-codestyle
8484

8585
.PHONY: test
8686
test:
87-
poetry run mpiexec -n 4 pytest --with-mpi
87+
poetry run mpiexec -n 4 pytest --cache-clear --reruns 2 --with-mpi
8888

8989
.PHONY: update-dev-deps
9090
update-dev-deps:

poetry.lock

Lines changed: 18 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ pre-commit = "^2.19.0"
3030
autoflake8 = "^0.4"
3131
pytest = "^7.1"
3232
pytest-mpi = "^0.6"
33+
pytest-rerunfailures = "^10.3"
3334

3435
[tool.black]
3536
# https://github.com/psf/black
3637
target-version = ["py38"]
3738
line-length = 88
38-
color = true
3939

4040
exclude = '''
4141
/(

0 commit comments

Comments
 (0)