From fe13abfc876484f7e53c84df192fc29518251cf3 Mon Sep 17 00:00:00 2001 From: Sina Atalay <79940989+sinaatalay@users.noreply.github.com> Date: Tue, 10 Oct 2023 20:13:23 +0200 Subject: [PATCH] upload coverage data to smokeshow --- .github/workflows/python-tests.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index 92997cb..b61e1b5 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -38,8 +38,10 @@ jobs: run: | pip install pytest pytest-cov pytest --cov-report html --cov="." tests/ - - name: Upload coverage data - uses: actions/upload-artifact@v3 - with: - name: htmlcov - path: ./htmlcov \ No newline at end of file + - name: Upload coverage data to smokeshow + run: smokeshow upload ./htmlcov + env: + SMOKESHOW_GITHUB_STATUS_DESCRIPTION: CLI Coverage {coverage-percentage} + SMOKESHOW_GITHUB_COVERAGE_THRESHOLD: 50 + SMOKESHOW_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + SMOKESHOW_GITHUB_PR_HEAD_SHA: ${{ github.event.pull_request.head.sha }}