diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 7445b36..9463ec8 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -21,6 +21,13 @@ jobs: python-version: ${{ matrix.python-version }} cache: 'poetry' - name: Install dependencies - run: poetry install + run: | + poetry install --with coverage - name: Run tests - run: poetry run pytest + run: | + poetry run coverage run -m pytest + - name: Coverage + env: + COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} + run: | + poetry run coveralls diff --git a/pyproject.toml b/pyproject.toml index d61ae31..07b8192 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,6 +21,12 @@ uvicorn = "^0.29.0" black = "^24.4.0" pytest-httpserver = "^1.0.10" +[tool.poetry.group.coverage] +optional = true + +[tool.poetry.group.coverage.dependencies] +coveralls = { version = "^4.0.0", python = ">=3.9,<3.13" } + [build-system] requires = ["poetry-core"] build-backend = "poetry.core.masonry.api" diff --git a/src/dummy b/src/dummy new file mode 100644 index 0000000..e69de29