Skip to content

Commit

Permalink
chore: Do not require binary dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon committed Dec 14, 2023
1 parent d6ba3e9 commit 0c4bf36
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,19 +46,12 @@
def tests(session: Session) -> None:
"""Execute pytest tests and compute coverage."""
deps = [*TEST_DEPS]
env = {"PIP_ONLY_BINARY": ":all:"}

if GH_ACTIONS_ENV_VAR in os.environ:
deps.append("pytest-github-actions-annotate-failures")

if session.python == "3.13":
env["PIP_NO_BINARY"] = "coverage,MarkupSafe"

if session.python.startswith("pypy"):
env["PIP_NO_BINARY"] = "MarkupSafe"

session.install(".", env=env)
session.install(*deps, env=env)
session.install(".")
session.install(*deps)
args = session.posargs or ["-m", "not integration_test"]

try:
Expand Down

0 comments on commit 0c4bf36

Please sign in to comment.