Migrate CI and install docs to uv - #221
Open
gomezzz wants to merge 5 commits into
Open
Conversation
Rewrite run_tests.yml to use astral-sh/setup-uv with Python 3.8 (the only Python for which pykep 2.6 ships pip wheels), replacing the deprecated provision-with-micromamba action. Switch the README build instructions to lead with uv, keeping conda/environment.yml as the cross-platform, newer-Python option. pykep 2.6 declares the deprecated 'sklearn' shim as a dependency (which fails to build); drop it via a uv override-dependencies always-false marker, since pykep only soft-checks sklearn and PASEOS never uses it.
The thermal test runs in real-time mode, so its outcome depends on wall clock. A 200x multiplier made a slow/loaded runner fall behind and spiral into an unbounded catch-up (overshooting temperature and timing out). Lower the multiplier to 20x and assert a generous heated-up window instead of a tight 285-300K band that only holds on fast machines.
This was referenced Jul 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Switches CI and install docs to uv (Python 3.8 — the only Python with pip wheels for pykep 2.6, the 2.x API PASEOS depends on). conda/
environment.ymlis kept as the cross-platform + newer-Python path.run_tests.ymltoastral-sh/setup-uvon Python 3.8, replacing the deprecatedprovision-with-micromamba@mainthat had CI failing; README build instructions lead with uv.[tool.uv]override drops pykep's brokensklearnshim dependency;MPLBACKEND=Aggkeeps the headless visualization test from blocking;pytest-timeoutadded as a safety net.test_thermalruns in real-time mode; a 200x multiplier made slow/loaded runners spiral into unbounded catch-up. Lowered to 20x with a generous heated-up assertion window.Result: 36/36 tests pass on the uv/Python 3.8 runner, lint + format green.
Test plan
Running testsgreen — 36 passedRuff Lint and Format CheckgreenStacked on #218 (ruff). The
advance_timeengine fix is now a separate PR (#220) stacked on top of this one. (Supersedes the earlier #219, which GitHub auto-closed during a stack reorder.)