From 4bac85b6a9b19e9e369b06628745158ed88fe634 Mon Sep 17 00:00:00 2001 From: mkinney Date: Thu, 30 Dec 2021 09:21:17 -0800 Subject: [PATCH] Update ci.yml --- .github/workflows/ci.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4de2984..0d18680 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,6 +32,18 @@ jobs: run: pylint meshtastic - name: Run tests with pytest run: pytest --cov=meshtastic + - name: Generate coverage report + run: | + pytest --cov=meshtastic --cov-report=xml + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v1 + with: + token: ${{ secrets.CODECOV_TOKEN }} + file: ./coverage.xml + flags: unittests + name: codecov-umbrella + yml: ./codecov.yml + fail_ci_if_error: true validate: runs-on: ubuntu-latest steps: