Skip to content

Commit 95539a8

Browse files
committed
Install required docs/test dependencies when using nox
1 parent 3762bb7 commit 95539a8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

noxfile.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def changelog(session):
1717
@nox.session
1818
def docs(session):
1919
"""Run github activity on this repository with the current repo."""
20-
session.install("-e", ".")
20+
session.install("-e", ".[sphinx]")
2121
session.install("-r", "docs/requirements.txt")
2222

2323
if "live" in session.posargs:
@@ -39,8 +39,8 @@ def docs(session):
3939
def test(session):
4040
"""Run github activity on this repository with the current repo."""
4141
session.install("-r", "requirements.txt")
42-
session.install("-e", ".")
42+
session.install("-e", ".[testing]")
4343

4444
# Run github activity and re-use the posargs
45-
cmd = ["pytest"] + session.posargs
45+
cmd = ["pytest", "--verbose", "--durations=10"] + session.posargs
4646
session.run(*cmd)

0 commit comments

Comments
 (0)