From 10218ecce9ebcbd2fc8d33be1bed5fc4429a84d9 Mon Sep 17 00:00:00 2001 From: Nate Harris Date: Mon, 2 Oct 2023 23:01:47 -0600 Subject: [PATCH 1/3] - Add pytest to test CI --- .github/workflows/test.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 29cbcb34..935eab79 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -56,7 +56,11 @@ jobs: flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics --output-file=flake8.output cat flake8.output - - name: Test with Coverage + - name: Test with pytest + run: | + pytest + + - name: Generate Coverage run: | coverage run coverage xml From f8bd49213c8edd69b99006a0bef473a3ab149132 Mon Sep 17 00:00:00 2001 From: nwithan8 Date: Tue, 3 Oct 2023 19:09:35 -0600 Subject: [PATCH 2/3] - Split coverage into separate steps --- .github/workflows/test.yaml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 935eab79..8532b35a 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -56,14 +56,16 @@ jobs: flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics --output-file=flake8.output cat flake8.output - - name: Test with pytest - run: | - pytest - - - name: Generate Coverage + - name: Run tests and generate coverage run: | coverage run + + - name: Generate coverage report + run: | coverage xml + + - name: Print coverage report + run: | coverage report - name: Upload coverage From 79099bcd884a5b4f628daf6ee13e5bb9a1b06a32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Odd=20Str=C3=A5b=C3=B8?= Date: Thu, 5 Oct 2023 19:13:57 +0000 Subject: [PATCH 3/3] Place coverage xml and report in same run step --- .github/workflows/test.yaml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 8532b35a..2307aecb 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -63,9 +63,6 @@ jobs: - name: Generate coverage report run: | coverage xml - - - name: Print coverage report - run: | coverage report - name: Upload coverage