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.
  • Loading branch information
webknjaz committed Sep 20, 2022
1 parent a648677 commit 20f0531
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/ci.yml
Expand Up @@ -195,7 +195,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 20f0531

Please sign in to comment.