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]