From df6108d4112159c54e454cd6f40140fbaa4fdd56 Mon Sep 17 00:00:00 2001 From: Pyry Lahtinen Date: Mon, 12 Dec 2022 18:04:02 +0000 Subject: [PATCH] added codecov integration --- .github/workflows/main.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5073223..9f33ea7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -21,4 +21,8 @@ jobs: - name: Init environment run: poetry install - name: Unit tests - run: poetry run pytest tests + run: poetry run coverage run --branch -m pytest tests + - name: Write coverage report + run: poetry run coverage xml + - name: Send coverage to Codecov + run: bash <(curl -s https://codecov.io/bash)