Skip to content

feat(ci): add no-JAX test leg to reusable lib-tests workflow (PyAutoLens#702) - #150

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/jax-default-dependency
Aug 19, 2026
Merged

feat(ci): add no-JAX test leg to reusable lib-tests workflow (PyAutoLens#702)#150
Jammy2211 merged 1 commit into
mainfrom
feature/jax-default-dependency

Conversation

@Jammy2211

Copy link
Copy Markdown
Contributor

Summary

Adds a unittest-nojax job to the reusable lib-tests.yml (PyAutoLens#702). JAX is becoming a default dependency of the stack, which means every ordinary environment — including the existing [optional]-extras test install — has jax importable; nothing exercised the jax-NOT-installed environment, even though the NumPy-only path remains fully supported (and is what Intel Macs get via environment markers).

The new leg (all stack packages, skipped for standalone autoreduce; Python 3.13 only) installs exactly like the normal job, then strips the jax package family (jax jaxlib jaxnnls optax chex jax_zero_contour blackjax nufftax tfp-nightly), asserts jax is genuinely gone (so the leg can never green-run with jax present), and re-runs the suite — proving every module imports and the NumPy path passes with jax absent.

API Changes

None — CI workflow only.

Test Plan

  • YAML validates
  • Leg's logic verified locally: clean venv + promoted autonerves, jax stripped → 157/157 tests pass and the no-jax import warning fires
  • First caller run green (any library PR after this merges; callers pin lib-tests.yml@main)

Note: the new job is additive — callers need no changes. It is not yet a required status check on the library repos; make it required once it has a green history.

Part of the six-repo JAX-default-dependency change: PyAutoLens#702.

Generated by the PyAutoLabs agent workflow.

@Jammy2211
Jammy2211 merged commit 3e4a545 into main Aug 19, 2026
2 checks passed
@Jammy2211
Jammy2211 deleted the feature/jax-default-dependency branch August 19, 2026 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant