From 973e4f6b5d85b4b9bce001b9d6c2817cbe54b211 Mon Sep 17 00:00:00 2001 From: zrr1999 <2742392377@qq.com> Date: Thu, 28 Dec 2023 16:43:53 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20ci:=20add=20SMOKESHOW=5FAUTH=5FK?= =?UTF-8?q?EY=20in=20smokeshow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/coverage.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 7f88251..ce6f28e 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -23,19 +23,20 @@ jobs: python-version: "3.12" - name: Install dependencies - run: pdm install -d + run: | + pdm install -d + pip install smokeshow - name: Run tests and coverage run: | pdm run cov --title "Coverage for ${{ github.sha }}" - name: Store coverage HTML - run: | - pip install smokeshow - smokeshow upload htmlcov + run: smokeshow upload htmlcov env: SMOKESHOW_GITHUB_STATUS_DESCRIPTION: Coverage {coverage-percentage} SMOKESHOW_GITHUB_COVERAGE_THRESHOLD: 50 SMOKESHOW_GITHUB_CONTEXT: coverage - SMOKESHOW_GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} + SMOKESHOW_GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }} SMOKESHOW_GITHUB_PR_HEAD_SHA: ${{ github.event.pull_request.head.sha }} + SMOKESHOW_AUTH_KEY: ${{ secrets.SMOKESHOW_AUTH_KEY }}