diff --git a/.github/workflows/blt.yml b/.github/workflows/blt.yml index 566731f8..cc5f52cd 100644 --- a/.github/workflows/blt.yml +++ b/.github/workflows/blt.yml @@ -34,12 +34,4 @@ jobs: - name: Test with pytest run: | poetry run pytest ./tests --junit-xml=pytest.xml --cov-report=term \ - --cov-report=xml --cov=nmdc_automation - - - - name: Pytest coverage comment - uses: MishaKav/pytest-coverage-comment@main - with: - pytest-xml-coverage-path: coverage.xml - junitxml-path: pytest.xml - + --cov-report=xml --cov=nmdc_automation --local-badge-output-dir badges/ diff --git a/badges/coverage.svg b/badges/coverage.svg new file mode 100644 index 00000000..24c797f7 --- /dev/null +++ b/badges/coverage.svg @@ -0,0 +1,50 @@ + + + + coverage: 63% + + + + + + + + + + + coverage + coverage + + + + 63% + 63% + + + + diff --git a/badges/tests.svg b/badges/tests.svg new file mode 100644 index 00000000..1227c608 --- /dev/null +++ b/badges/tests.svg @@ -0,0 +1,50 @@ + + + + tests: 26 + + + + + + + + + + + tests + tests + + + + 26 + 26 + + + + diff --git a/poetry.lock b/poetry.lock index d8c6eec1..05fa8c4a 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1575,6 +1575,23 @@ pytest = ">=4.6" [package.extras] testing = ["fields", "hunter", "process-tests", "pytest-xdist", "six", "virtualenv"] +[[package]] +name = "pytest-local-badge" +version = "1.0.3" +description = "Generate local badges (shields) reporting your test suite status." +optional = false +python-versions = ">=3.7" +files = [ + {file = "pytest-local-badge-1.0.3.tar.gz", hash = "sha256:e13274cc9cadf91a1e3fa290d0bbbd371a365f9d719411e475596f722c2725a5"}, + {file = "pytest_local_badge-1.0.3-py3-none-any.whl", hash = "sha256:e14dc79922598e5b27ef4398a3537535ad115df2229ebba0259f6c6d92c6047b"}, +] + +[package.dependencies] +pytest = ">=6.1.0" + +[package.extras] +develop = ["black (>=22.12.0)", "build", "flake8-bugbear", "flake8-comprehensions", "flake8-import-order", "flake8-print", "pep8-naming", "pytest (>=7.1.0,<8)", "pytest-cov", "pytest-mock"] + [[package]] name = "pytest-logging" version = "2015.11.4" @@ -2484,4 +2501,4 @@ files = [ [metadata] lock-version = "2.0" python-versions = "^3.9" -content-hash = "618a52f79fd4086de98898dcec72b7c2ae7d9d88e10f20074a6f7108bc9997dc" +content-hash = "211c7b05291828dc0859f1df7e90d97cb941e420bae65330b930a582627565c1" diff --git a/pyproject.toml b/pyproject.toml index 275c28fe..9ac707fc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -27,6 +27,7 @@ pytest-mock = "^3.12.0" pymongo-inmemory = "^0.4.0" flake8 = "^6.1.0" setuptools = "^69.0.2" +pytest-local-badge = "^1.0.3" [tool.poetry.group.dev.dependencies]