From aed5a82f68b631ba81e0ea85c7140687131b92fb Mon Sep 17 00:00:00 2001 From: Deniz Turgut Date: Sat, 4 Nov 2023 01:48:55 +0300 Subject: [PATCH] add github actions steps summary from test results --- .github/workflows/main.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c29a08c25..da372b86b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -38,7 +38,7 @@ jobs: with: pandoc-version: "2.9.2" - name: Install tox - run: python -m pip install -U pip tox + run: python -m pip install -U pip tox coverage - name: Info run: | echo "===== PYTHON =====" @@ -47,6 +47,11 @@ jobs: pandoc --version | head -2 - name: Run tests run: tox -e py${{ matrix.python }} + - name: Generate summary + if: startsWith(runner.os, 'Linux') && matrix.python=='3.12' + run: | + echo "# Coverage report" >> $GITHUB_STEP_SUMMARY + coverage report --format=markdown >> $GITHUB_STEP_SUMMARY lint: name: Lint