Skip to content

Commit

Permalink
refactor: update pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
narenaryan committed Oct 26, 2024
1 parent cded52d commit 48f8afe
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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]
Expand Down

0 comments on commit 48f8afe

Please sign in to comment.