From 6ad45df389e50e05ae0dd27cab8119f95f1bcbbf Mon Sep 17 00:00:00 2001 From: bytebutcher <40742871+bytebutcher@users.noreply.github.com> Date: Mon, 3 Jul 2023 12:30:29 +0200 Subject: [PATCH] #4 Adds codecov --- .github/workflows/codecov.yml | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index c5d60f3..d09e4d7 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -1,3 +1,18 @@ -- name: Upload coverage reports to Codecov - uses: codecov/codecov-action@v3 - env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} \ No newline at end of file +name: Workflow for Codecov example-python +on: [push, pull_request] +jobs: + run: + runs-on: ubuntu-22.04 + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Set up Python 3.10 + uses: actions/setup-python@v4 + with: + python-version: '3.10' + - name: Install dependencies + run: pip install -r . + - name: Run tests and collect coverage + run: pytest --cov . + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v3