diff --git a/.github/workflows/test-pkg.yml b/.github/workflows/test-pkg.yml index de8c2eb..73de51a 100644 --- a/.github/workflows/test-pkg.yml +++ b/.github/workflows/test-pkg.yml @@ -27,4 +27,9 @@ jobs: run: make lint - name: test - run: make test + run: PYTEST_FLAGS='--cov-report json --cov-report term --cov=pylspclient --cov-branch' make test + + - name: upload coverage + uses: actions/upload-artifact@v2 + name: coverage + path: ./dist diff --git a/pyproject.toml b/pyproject.toml index d331353..4f0c364 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,6 +14,7 @@ optional = true [tool.poetry.group.tests.dependencies] ruff = "^0.1.6" pytest = "^7.4.0" +pytest-cov = "^4.1.0" python-lsp-server = "^1.9.0" [tool.poetry.group.dev]