From 78214c7de07a0c122aca8bb434dfe3af4f6253b3 Mon Sep 17 00:00:00 2001 From: nucccc Date: Sun, 3 Dec 2023 18:05:27 +0100 Subject: [PATCH] added latest part --- .github/workflows/cov.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cov.yml b/.github/workflows/cov.yml index b37f183..5ff50b3 100644 --- a/.github/workflows/cov.yml +++ b/.github/workflows/cov.yml @@ -28,8 +28,17 @@ jobs: - name: launch test run: python3 -m pytest - - name: cov comment - id: coverage-comment + - name: cov_comment + id: coverage_comment uses: py-cov-action/python-coverage-comment-action@v3 with: - GITHUB_TOKEN: ${{ github.token }} \ No newline at end of file + GITHUB_TOKEN: ${{ github.token }} + + - name: Store Pull Request comment to be posted + uses: actions/upload-artifact@v3 + if: steps.coverage_comment.outputs.COMMENT_FILE_WRITTEN == 'true' + with: + # If you use a different name, update COMMENT_ARTIFACT_NAME accordingly + name: python-coverage-comment-action + # If you use a different name, update COMMENT_FILENAME accordingly + path: python-coverage-comment-action.txt \ No newline at end of file