Skip to content

Commit 4448d91

Browse files
committed
pip-install requirements
1 parent fdf62b3 commit 4448d91

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

noxfile.py

+4-7
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,10 @@
1111
PYTHON_VERSION = "3.12"
1212

1313

14-
@nox.session(python=PYTHON_VERSION, venv_backend="conda")
14+
@nox.session
1515
def test(session: nox.Session) -> None:
1616
"""Run the tests."""
17-
session.install(".[testing]")
18-
session.conda_install("gimli.units", channel=["nodefaults", "conda-forge"])
17+
session.install(".[units,testing]")
1918

2019
args = ["--cov", PROJECT, "-vvv"] + session.posargs
2120

@@ -30,10 +29,8 @@ def test(session: nox.Session) -> None:
3029
@nox.session(name="test-cli", python=PYTHON_VERSION, venv_backend="conda")
3130
def test_cli(session: nox.Session) -> None:
3231
"""Run the tests."""
33-
session.install(".")
34-
session.conda_install(
35-
"gimli.units", "pymt_topography", channel=["nodefaults", "conda-forge"]
36-
)
32+
session.install(".[units]")
33+
session.conda_install("pymt_topography", channel=["nodefaults", "conda-forge"])
3734

3835
session.run("bmi-test", "pymt_topography:Topography")
3936

0 commit comments

Comments
 (0)