Skip to content

Commit

Permalink
fix project name and test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Jin-Sun-tts committed Apr 13, 2023
1 parent 2dc1631 commit a4a3619
Show file tree
Hide file tree
Showing 7 changed files with 108 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
run: poetry install

- name: Run Pytest
run: poetry run pytest --junitxml=pytest.xml --cov=main | tee pytest-coverage.txt
run: poetry run pytest --junitxml=pytest.xml --cov=datagovharvester | tee pytest-coverage.txt

- name: Report test coverage
uses: MishaKav/pytest-coverage-comment@main
Expand Down
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pytest.xml
pytest-coverage.txt
.coverage
.pytest_cache
.DS_Store
File renamed without changes.
File renamed without changes.
104 changes: 95 additions & 9 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
[tool.poetry]
name = "datagov-harvesting-logic"
name = "datagovharvester"
version = "0.1.0"
description = ""
authors = ["Jin-Sun-tts <[email protected]>"]
readme = "README.md"
packages = [{include = "demo", from = "src"}]
packages = [{include = "datagovharvester"}]

[tool.poetry.dependencies]
python = "^3.9"

[tool.poetry.group.dev.dependencies]
pytest = "^7.3.0"
ruff = "^0.0.261"
pytest-cov = "^4.0.0"

[tool.ruff]
# Enable pycodestyle (`E`) and Pyflakes (`F`) codes by default.
Expand Down
4 changes: 2 additions & 2 deletions tests/test_demo.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from demo import __version__
from demo.example import hello
from datagovharvester import __version__
from datagovharvester.example import hello

def test_version():
assert __version__ == "0.1.0"
Expand Down

2 comments on commit a4a3619

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCoverMissing
datagovharvester
   __init__.py10100% 
   example.py944 56%
TOTAL10460% 

Tests Skipped Failures Errors Time
2 0 💤 0 ❌ 0 🔥 0.111s ⏱️

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCoverMissing
datagovharvester
   __init__.py10100% 
   example.py944 56%
TOTAL10460% 

Tests Skipped Failures Errors Time
2 0 💤 0 ❌ 0 🔥 0.088s ⏱️

Please sign in to comment.