diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e6abfc18..a4388021 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -84,6 +84,8 @@ jobs: python -m pip install --upgrade hatch - name: Run test suite with coverage run: hatch run cov-ci + - name: Generate badges + run: genbadge tests --input-file=pytest-junit.xml - name: Upload test results if: always() uses: actions/upload-artifact@v3 diff --git a/.gitignore b/.gitignore index eea11296..153514bd 100644 --- a/.gitignore +++ b/.gitignore @@ -76,7 +76,7 @@ nosetests.xml coverage.xml *,cover .hypothesis/ -junit.xml +pytest-junit.xml # Translations *.mo diff --git a/pyproject.toml b/pyproject.toml index b0597500..2b5ffba6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -80,6 +80,7 @@ report = [ "jupyter~=1.0" ] testing = [ + "genbadge[tests]~=1.1", "pytest~=7.4", "pytest-cov~=4.1", "pytest-randomly~=3.15",