diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f62c04a2..5a76b8ba 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -109,11 +109,8 @@ jobs: - uses: astral-sh/setup-uv@v4 - - name: Check compute features - run: uv pip install --system .[test,test-extras] - - - name: Test package - run: python -m pytest -ra -m dis --ignore tests/test_notebooks.py + - name: Test compute features + run: uvx nox -s disassemble --verbose pass: needs: [pre-commit, check-lite, check-full, discheck] diff --git a/noxfile.py b/noxfile.py index 4024051c..c3e6b5b1 100644 --- a/noxfile.py +++ b/noxfile.py @@ -4,7 +4,7 @@ import nox -nox.options.sessions = ["lint", "lite", "tests", "doctests"] +nox.options.sessions = ["lint", "lite", "tests", "doctests", "disassemble"] nox.needs_version = ">=2024.4.15" nox.options.default_venv_backend = "uv|virtualenv" @@ -88,3 +88,11 @@ def build(session: nox.Session) -> None: """Build an SDist and wheel.""" session.install("build") session.run("python", "-m", "build") + + +@nox.session(reuse_venv=True, python="3.8", default=False) +def disassemble(session: nox.Session) -> None: + """Disassemble run.""" + session.install("-e", ".[test-extras]") + session.posargs.extend(["-m", "dis"]) + lite(session)