Add retry to test and coverage

This commit is contained in:
Li Jiang 2024-07-19 11:58:11 +08:00
Родитель b0f8c5a8e9
Коммит ce13097cd5
1 изменённых файлов: 2 добавлений и 0 удалений

2
.github/workflows/python-package.yml поставляемый
Просмотреть файл

@ -86,12 +86,14 @@ jobs:
if: matrix.python-version != '3.10'
run: |
pytest test
retry: 3
- name: Coverage
if: matrix.python-version == '3.10'
run: |
pip install coverage
coverage run -a -m pytest test
coverage xml
retry: 3
- name: Upload coverage to Codecov
if: matrix.python-version == '3.10'
uses: codecov/codecov-action@v3