From 2d9946ac9c43fdb04469b6a0b3e0b866a3d1e5b5 Mon Sep 17 00:00:00 2001 From: Aimilia Dimitra Ktena Date: Sat, 8 Jun 2024 17:53:53 +0300 Subject: [PATCH] Add code for code coverage integration --- .github/workflows/github-actions.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/github-actions.yml b/.github/workflows/github-actions.yml index 3ba915ce..3dd1f6a7 100644 --- a/.github/workflows/github-actions.yml +++ b/.github/workflows/github-actions.yml @@ -142,6 +142,7 @@ jobs: run: | python -mpip install --upgrade pip python -mpip install --progress-bar=off -r ci/requirements.txt + python -mpip install coverage virtualenv --version pip --version tox --version @@ -161,6 +162,13 @@ jobs: echo "::warning title=Invalid file permissions automatically fixed::$line" done + - name: Generate Report + run: | + coverage run -m unittest + + - name: Upload Coverage to Codecov + uses: codecov/codecov-action@v2 + - name: upload artifact uses: actions/upload-pages-artifact@v3