Skip to content

Commit

Permalink
Re-try failing tests in CI with maximum verbosity
Browse files Browse the repository at this point in the history
This allows getting more insight into the tests
that fail consistently.

(cherry picked from commit 20f0531)
  • Loading branch information
webknjaz committed Sep 20, 2022
1 parent 4bc798b commit 7b9a39f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,15 @@ jobs:
PIP_USER: 1
run: >-
PATH="${HOME}/Library/Python/3.11/bin:${HOME}/.local/bin:${PATH}"
make vvtest
make test
shell: bash
- name: Re-run the failing tests with maximum verbosity
if: failure()
env:
COLOR: yes
AIOHTTP_NO_EXTENSIONS: ${{ matrix.no-extensions }}
run: >- # `exit 1` makes sure that the job remains red with flaky runs
pytest --no-cov -vvvvv --lf && exit 1
shell: bash
- name: Turn coverage into xml
env:
Expand Down

0 comments on commit 7b9a39f

Please sign in to comment.