From 6c25af78d05f2cd2c5ba3fdd52adcb3a53c4d313 Mon Sep 17 00:00:00 2001 From: Kun Jinkao <45487685+Snoopy1866@users.noreply.github.com> Date: Mon, 23 Sep 2024 20:33:39 +0800 Subject: [PATCH] Update check.yml --- .github/workflows/check.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index fac2771..b56e795 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -14,9 +14,6 @@ jobs: matrix: os: [ubuntu-latest, macos-latest, windows-latest] python-version: ["3.10", "3.11", "3.12"] - env: - OS: ${{ matrix.os }} - PYTHON: ${{ matrix.python-version }} steps: - name: Checkout Repository uses: actions/checkout@v4 @@ -40,10 +37,13 @@ jobs: - name: Upload results to Codecov uses: codecov/codecov-action@v4 with: - env_vars: OS, PYTHON verbose: true token: ${{ secrets.CODECOV_TOKEN }} + - name: Post Coverage + uses: codecov/codecov-action@v4 + if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.12' + report: needs: check runs-on: ubuntu-latest @@ -52,6 +52,6 @@ jobs: uses: actions/checkout@v4 - name: Report Results run: | - if [[ "${{ needs.check.result }}" == "failure" ]]; then + if [[ '${{ needs.check.result }}' == 'failure' ]]; then exit 1 fi