From 08a6c00be09704a99241447cfa6af9d785f583d9 Mon Sep 17 00:00:00 2001 From: kp-cat <52385411+kp-cat@users.noreply.github.com> Date: Sun, 8 Feb 2026 22:26:03 +0100 Subject: [PATCH] add pytest-rerunfailures and rerun CI tests --- .github/workflows/python-ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/python-ci.yml b/.github/workflows/python-ci.yml index e6a0e32..2167f1b 100644 --- a/.github/workflows/python-ci.yml +++ b/.github/workflows/python-ci.yml @@ -48,10 +48,10 @@ jobs: run: | docker run --rm -v ${{ github.workspace }}:/app -w /app python:${{ matrix.python-version }} bash -c " pip install --upgrade pip && - pip install pytest pytest-cov parameterized mock flake8 && + pip install pytest pytest-rerunfailures pytest-cov parameterized mock flake8 && pip install -r requirements.txt && flake8 configcatclient --count --show-source --statistics && - pytest configcatclienttests + pytest configcatclienttests --reruns 3 " - name: Set up Python ${{ matrix.python-version }} @@ -67,7 +67,7 @@ jobs: if: ${{ !(matrix.os == 'ubuntu-latest' && contains(fromJSON('["3.5","3.6","3.7"]'), matrix.python-version)) }} run: | python -m pip install --upgrade pip - pip install pytest pytest-cov parameterized mock flake8 + pip install pytest pytest-rerunfailures pytest-cov parameterized mock flake8 pip install -r requirements.txt - name: Lint with flake8 @@ -78,7 +78,7 @@ jobs: - name: Test if: ${{ !(matrix.os == 'ubuntu-latest' && contains(fromJSON('["3.5","3.6","3.7"]'), matrix.python-version)) }} - run: pytest configcatclienttests + run: pytest configcatclienttests --reruns 3 coverage: needs: [test]