From 24ed2f2492ab251689c295454882c48ce4b44110 Mon Sep 17 00:00:00 2001 From: Sina Atalay Date: Sun, 3 Dec 2023 18:12:36 +0100 Subject: [PATCH] update CI --- .github/workflows/ci.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index b9a03f3..bf51abe 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -69,8 +69,9 @@ jobs: name: coverage path: .coverage.${{ matrix.python-version }}.${{ matrix.os }} - combine-coverages: - name: Upload coverage report + report-coverage: + if: github.event_name == 'push' + name: Generate a coverage report needs: [test] runs-on: ubuntu-latest @@ -108,6 +109,7 @@ jobs: SMOKESHOW_GITHUB_COVERAGE_THRESHOLD: 50 SMOKESHOW_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SMOKESHOW_GITHUB_PR_HEAD_SHA: ${{ github.event.pull_request.head.sha }} + publish: if: github.event_name == 'release' name: Publish to PyPI