Add retry to test and coverage

This commit is contained in:
Li Jiang
2024-07-19 11:58:11 +08:00
parent b0f8c5a8e9
commit ce13097cd5

View File

@@ -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