From 8d184a9e8eb6dc42791fa9b504fff7f39c157683 Mon Sep 17 00:00:00 2001 From: Miles Liu Date: Thu, 29 Sep 2022 10:42:45 +0800 Subject: [PATCH] Upload codecov report only from Ubuntu22.04 Also update GitHub action dependencies. --- .github/workflows/lint.yml | 6 +++--- .github/workflows/tests.yml | 8 +++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 92a8072d5..e1a5c86a5 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -6,15 +6,15 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 10 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Cache for pip - uses: actions/cache@v1 + uses: actions/cache@v3 with: path: ~/.cache/pip key: ${{ matrix.os }}-cache-pip - name: Set up Python 3.8 - uses: actions/setup-python@v1 + uses: actions/setup-python@v4 with: python-version: 3.8 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 12057667b..f4589bd2e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -10,9 +10,9 @@ jobs: runs-on: ${{ matrix.os }} timeout-minutes: 10 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Cache for pip - uses: actions/cache@v1 + uses: actions/cache@v3 with: path: ~/.cache/pip key: ${{ matrix.os }}-cache-pip @@ -38,12 +38,14 @@ jobs: PWNDBG_GITHUB_ACTIONS_TEST_RUN=1 sudo --preserve-env ./tests.sh - name: Process coverage data + if: matrix.os == 'ubuntu-22.04' run: | coverage combine coverage xml - name: "Upload coverage to Codecov" - uses: codecov/codecov-action@v2 + if: matrix.os == 'ubuntu-22.04' + uses: codecov/codecov-action@v3 with: fail_ci_if_error: true