From 43b53f79f8ca325ba3b33b9d1700efd200addf8b Mon Sep 17 00:00:00 2001 From: jamshale Date: Tue, 14 May 2024 20:01:09 +0000 Subject: [PATCH 1/2] WIP Signed-off-by: jamshale --- .github/workflows/tests.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 62699408a3..ec56211e38 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -28,10 +28,15 @@ jobs: poetry install -E "askar bbs" - name: Tests run: | - poetry run pytest 2>&1 | tee pytest.log + poetry run pytest --cov 2>&1 | tee pytest.log PYTEST_EXIT_CODE=${PIPESTATUS[0]} if grep -Eq "RuntimeWarning: coroutine .* was never awaited" pytest.log; then echo "Failure: Detected unawaited coroutine warning in pytest output." exit 1 fi exit $PYTEST_EXIT_CODE + code-coverage: + name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v4.0.1 + with: + token: ${{ secrets.CODECOV_TOKEN }} \ No newline at end of file From 88c44685dceb9ab84af3d3b3b83c539200101994 Mon Sep 17 00:00:00 2001 From: jamshale Date: Tue, 14 May 2024 20:05:28 +0000 Subject: [PATCH 2/2] WIP Signed-off-by: jamshale --- .github/workflows/tests.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ec56211e38..ec0fe41b32 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -35,8 +35,7 @@ jobs: exit 1 fi exit $PYTEST_EXIT_CODE - code-coverage: - name: Upload coverage reports to Codecov - uses: codecov/codecov-action@v4.0.1 - with: - token: ${{ secrets.CODECOV_TOKEN }} \ No newline at end of file + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v4.0.1 + with: + token: ${{ secrets.CODECOV_TOKEN }} \ No newline at end of file