Skip to content

Commit

Permalink
Adds a nox session for disassemble tests
Browse files Browse the repository at this point in the history
Fixes #532
  • Loading branch information
dpshelio committed Dec 3, 2024
1 parent 893ede6 commit a440184
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

pass:
needs: [pre-commit, check-lite, check-full, discheck]
Expand Down
10 changes: 9 additions & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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(["-ra", "-m", "dis"])
lite(session)

0 comments on commit a440184

Please sign in to comment.