Skip to content

Commit

Permalink
run tests with conda backend and python version
Browse files Browse the repository at this point in the history
  • Loading branch information
mcflugen committed Nov 21, 2023
1 parent 62254b6 commit 81969ee
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@

import nox

PYTHON_VERSION = "3.12"
PROJECT = "compaction"
ROOT = pathlib.Path(__file__).parent


@nox.session()
@nox.session(python=PYTHON_VERSION, venv_backend="conda")
def test(session: nox.Session) -> None:
"""Run the tests."""
os.environ["WITH_OPENMP"] = "1"
Expand All @@ -34,7 +35,7 @@ def test(session: nox.Session) -> None:
session.run("coverage", "report", "--ignore-errors", "--show-missing")


@nox.session(name="test-cli")
@nox.session(name="test-cli", python=PYTHON_VERSION, venv_backend="conda")
def test_cli(session: nox.Session) -> None:
"""Test the command line interface."""
session.install(".")
Expand Down

0 comments on commit 81969ee

Please sign in to comment.