From 48f8afeedd886c44891a78d9c3d241332137472a Mon Sep 17 00:00:00 2001 From: N3N Date: Sat, 26 Oct 2024 16:04:11 -0700 Subject: [PATCH] refactor: update pyproject.toml --- .github/workflows/test.yml | 17 ++++++----------- pyproject.toml | 5 +++-- 2 files changed, 9 insertions(+), 13 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a98b6a3..9c9ebd2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -25,19 +25,14 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install -r requirements.txt - pip install python-dateutil pytest mock pytest-cov coverage coveragepy-lcov + pip install -r requirements_test.txt - name: Run Test run: | - pytest --cov coveralls --cov-report term-missing --cov=resources tests/ + coverage run -m pytest tests - - name: Covert to lcov - run: | - coveragepy-lcov - - - name: Coveralls GitHub Action - uses: coverallsapp/github-action@1.1.3 + - name: Upload coverage to Coveralls + uses: AndreMiras/coveralls-python-action@develop with: - github-token: ${{ secrets.GITHUB_TOKEN }} - path-to-lcov: lcov.info + parallel: true + flag-name: Unit Test diff --git a/pyproject.toml b/pyproject.toml index 0053d2a..1dfd380 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -40,7 +40,7 @@ dependencies = [ "structlog==24.4.0", "azure-keyvault==4.2.0", "azure-identity==1.19.0", - "hvac==2.3.0" + "hvac==2.3.0", ] [project.urls] Documentation = "https://github.com/narenaryan/whispr/blob/main/README.md" @@ -60,9 +60,10 @@ python = ["3.8", "3.9", "3.10", "3.11", "3.12"] dependencies = ["mypy>=1.0.0"] [tool.coverage.run] -source_pkgs = ["whispr", "tests"] +source_pkgs = ["whispr"] branch = true parallel = true +relative_files = true omit = ["src/whispr/__about__.py"] [tool.coverage.paths]