From 3e4d8e4b34f7072a1018dc4778de25525b6ecaaa Mon Sep 17 00:00:00 2001 From: Amazia Gur <149373874+amaziahub@users.noreply.github.com> Date: Wed, 27 Nov 2024 10:21:45 +0000 Subject: [PATCH] ci: add codenv (#9) Co-authored-by: Amazia Gur --- .github/workflows/test.yml | 5 +++++ Makefile | 2 +- pyproject.toml | 3 +++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a223ebe..f6f49cd 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -39,3 +39,8 @@ jobs: - name: Run tests using Make run: | make test + + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v4 + with: + token: ${{ secrets.CODECOV_TOKEN }} diff --git a/Makefile b/Makefile index 1b3260c..ca554b2 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ test: @echo "Running tests..." - poetry run pytest + poetry run pytest --cov=mimicker --cov-report=xml --cov-report=html install: diff --git a/pyproject.toml b/pyproject.toml index bb5a41d..61d2bd3 100755 --- a/pyproject.toml +++ b/pyproject.toml @@ -18,6 +18,9 @@ requests = "^2.0" pytest = "^6.0" PyHamcrest = "^2.0" +[tool.poetry.group.dev.dependencies] +pytest-cov = "<3.0" + [build-system] requires = ["poetry-core>=1.0.0"] build-backend = "poetry.core.masonry.api"