Upload codecov report only from Ubuntu22.04

Also update GitHub action dependencies.
This commit is contained in:
Miles Liu 2022-09-29 10:42:45 +08:00 committed by Disconnect3d
parent 3043c748fe
commit 8d184a9e8e
2 changed files with 8 additions and 6 deletions

View File

@ -6,15 +6,15 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
timeout-minutes: 10 timeout-minutes: 10
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Cache for pip - name: Cache for pip
uses: actions/cache@v1 uses: actions/cache@v3
with: with:
path: ~/.cache/pip path: ~/.cache/pip
key: ${{ matrix.os }}-cache-pip key: ${{ matrix.os }}-cache-pip
- name: Set up Python 3.8 - name: Set up Python 3.8
uses: actions/setup-python@v1 uses: actions/setup-python@v4
with: with:
python-version: 3.8 python-version: 3.8

View File

@ -10,9 +10,9 @@ jobs:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
timeout-minutes: 10 timeout-minutes: 10
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Cache for pip - name: Cache for pip
uses: actions/cache@v1 uses: actions/cache@v3
with: with:
path: ~/.cache/pip path: ~/.cache/pip
key: ${{ matrix.os }}-cache-pip key: ${{ matrix.os }}-cache-pip
@ -38,12 +38,14 @@ jobs:
PWNDBG_GITHUB_ACTIONS_TEST_RUN=1 sudo --preserve-env ./tests.sh PWNDBG_GITHUB_ACTIONS_TEST_RUN=1 sudo --preserve-env ./tests.sh
- name: Process coverage data - name: Process coverage data
if: matrix.os == 'ubuntu-22.04'
run: | run: |
coverage combine coverage combine
coverage xml coverage xml
- name: "Upload coverage to Codecov" - name: "Upload coverage to Codecov"
uses: codecov/codecov-action@v2 if: matrix.os == 'ubuntu-22.04'
uses: codecov/codecov-action@v3
with: with:
fail_ci_if_error: true fail_ci_if_error: true