From cceeb9e9c232abc85111fa4a52f3c3c9799cbe83 Mon Sep 17 00:00:00 2001 From: Michael Thornton Date: Fri, 8 Dec 2023 11:49:44 -0800 Subject: [PATCH] add coverage reporting step --- .github/workflows/blt.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/blt.yml b/.github/workflows/blt.yml index 8d5ece1b..2eaf6475 100644 --- a/.github/workflows/blt.yml +++ b/.github/workflows/blt.yml @@ -30,6 +30,11 @@ jobs: poetry install - name: Test with pytest run: | - poetry run pytest ./tests --cov-report=term --cov-report=html \ + poetry run pytest ./tests --junit-xml=pytest.xml --cov-report=term --cov-report=html \ --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