diff --git a/.github/workflows/unittest.yml b/.github/workflows/unittest.yml index e4a3383..a39af26 100644 --- a/.github/workflows/unittest.yml +++ b/.github/workflows/unittest.yml @@ -26,4 +26,10 @@ jobs: - name: run tests using pytest run: | - cd $GITHUB_WORKSPACE && pytest + cd $GITHUB_WORKSPACE && pytest --cov --cov-report xml:coverage.xml + + - name: Submit Coverage + uses: codecov/codecov-action@v5 + with: + fail_ci_if_error: true + token: ${{secrets.CODECOV_TOKEN}} diff --git a/requirements.txt b/requirements.txt index 418e4f7..e7a3c1e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,5 @@ pytest +pytest-cov pylint openstacksdk pre-commit