Skip to content

Commit

Permalink
Fix CI issue with pytest-cov having no config path
Browse files Browse the repository at this point in the history
Internal-tag: [#66153]
Signed-off-by: bbrzyski <[email protected]>
  • Loading branch information
bbrzyski committed Sep 23, 2024
1 parent a918cab commit 52baff7
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,15 @@ def test_lint(session: nox.Session) -> None:
@nox.session(python=PYTHON_VERSIONS)
def tests(session: nox.Session) -> None:
session.install("-e", ".[tests,topwrap-parse]")
session.run("pytest", "-rs", "--cov-report", "html:cov_html", "--cov=topwrap", "tests")
session.run(
"pytest",
"-rs",
"--cov-report",
"html:cov_html",
"--cov=topwrap",
"--cov-config=pyproject.toml",
"tests",
)


@nox.session
Expand Down

0 comments on commit 52baff7

Please sign in to comment.