Skip to content

Commit

Permalink
Merge bbb87f9 into ef7c1bc
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanondisponibile authored Jun 25, 2023
2 parents ef7c1bc + bbb87f9 commit a096844
Show file tree
Hide file tree
Showing 6 changed files with 130 additions and 12 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,11 @@ jobs:
- name: Install dependencies
run: poetry install -E dev
- name: Run tests
run: poetry run pytest
run: poetry run pytest --cov=src --cov-report=xml tests
- name: Upload coverage
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
file: ./coverage.xml
verbose: true
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![codecov](https://codecov.io/gh/stefanondisponibile/theboringlibrary/branch/develop/graph/badge.svg?token=8VHJ01UKLX)](https://codecov.io/gh/stefanondisponibile/theboringlibrary)

# theboringlibrary

It does nothing.
111 changes: 102 additions & 9 deletions poetry.lock

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

13 changes: 11 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "theboringlibrary"
version = "0.3.5"
version = "0.4.0"
description = "It does nothing!"
authors = ["Stefano Frassetto <[email protected]>"]
readme = "README.md"
Expand All @@ -12,14 +12,23 @@ packages = [
python = "^3.10"
pytest = {version = "^7.3.2", optional = true}
mkdocs = {version = "^1.4.3", optional = true}
pytest-cov = "^4.1.0"
coverage = {version = "^7.2.7", extras = ["toml"]}

[tool.poetry.extras]

dev = [
"pytest",
"mkdocs"
"mkdocs",
"pytest-cov",
"coverage",
]

[tool.pytest.ini_options]
addopts = "-v --cov=./src --cov-report=html --cov-append"

[tool.coverage.report]
omit = ["tests"]

[build-system]
requires = ["poetry-core"]
Expand Down
4 changes: 4 additions & 0 deletions src/theboringlibrary/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@
def do_nothing() -> None:
"""Returns None."""
return NOTHING

def some_untested_fn() -> None:
"""It's actually tested now..."""
return do_nothing()
3 changes: 3 additions & 0 deletions tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@

def test_do_nothing() -> None:
assert core.do_nothing() is None

def test_some_untested_fn() -> None:
assert core.some_untested_fn() is None

0 comments on commit a096844

Please sign in to comment.