From 9115b9656b4997872326fec610b1173fdc923ea0 Mon Sep 17 00:00:00 2001 From: Mitch Burton Date: Tue, 21 Nov 2023 11:00:28 -0800 Subject: [PATCH] .github/workflows do codecov upload on every push --- .github/workflows/ci.yml | 12 ------------ .github/workflows/codecov.yml | 17 +++++++++++++++++ 2 files changed, 17 insertions(+), 12 deletions(-) create mode 100644 .github/workflows/codecov.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0d58e1a23..f515d777a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,15 +20,3 @@ jobs: - uses: actions/checkout@v2 - run: make depends - run: make lint - coverage: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - run: | - make depends - # -common seems a catch-22, but this is just a shortcut to - # initialize user and dirs, some used through tests. - sudo apt-get -y install landscape-common - - run: make coverage TRIAL=/usr/bin/trial3 - - name: upload - uses: codecov/codecov-action@v1 diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml new file mode 100644 index 000000000..b92d9780b --- /dev/null +++ b/.github/workflows/codecov.yml @@ -0,0 +1,17 @@ +name: Codecov upload + +on: [push, pull_request] + +jobs: + coverage: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - run: | + make depends + # -common seems a catch-22, but this is just a shortcut to + # initialize user and dirs, some used through tests. + sudo apt-get -y install landscape-common + - run: make coverage TRIAL=/usr/bin/trial3 + - name: upload + uses: codecov/codecov-action@v3