From 68dd2c848d63612031f6941025a0903af00fc0b4 Mon Sep 17 00:00:00 2001 From: judahpaul16 Date: Sun, 28 Apr 2024 04:53:04 -0400 Subject: [PATCH] Added coverage.py to workflow --- .github/workflows/workflow.yaml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/workflow.yaml b/.github/workflows/workflow.yaml index 34e6131..9367b3b 100644 --- a/.github/workflows/workflow.yaml +++ b/.github/workflows/workflow.yaml @@ -37,18 +37,17 @@ jobs: run: | pip install --upgrade pip pip install -r requirements.txt - - - name: Run tests + pip install pytest coverage coveralls + + - name: Run tests with coverage run: | - pip install pytest - pytest tests/ - + coverage run --source=urbackup -m pytest tests/ + coverage report -m + - name: Coveralls env: COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} run: | - pip install coveralls - coverage run --source=mypkg -m pytest tests/ coveralls build: