Skip to content

Commit e9441e3

Browse files
authored
test: retry once for some flaky tests (#174)
1 parent 08928e6 commit e9441e3

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/python_package.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
- name: Install dependencies
4141
run: |
4242
python -m pip install --upgrade pip
43-
python -m pip install pytest pytest-codspeed pytest-randomly pytest-split
43+
python -m pip install pytest pytest-codspeed pytest-randomly pytest-split pytest-retry
4444
python -m pip install .
4545
4646
- name: Restore test durations
@@ -71,7 +71,8 @@ jobs:
7171
--store-durations \
7272
--durations-path=.test_durations.${{ matrix.group }} \
7373
--splitting-algorithm least_duration \
74-
--clean-durations
74+
--clean-durations \
75+
--retries 1
7576
7677
- name: Upload test durations
7778
uses: actions/upload-artifact@v6

0 commit comments

Comments
 (0)