Repository navigation
Fix workflows, lint, and tests (due to sklearn behaviour change) - #301
Open
guglielmopadula wants to merge 2 commits into
Open
guglielmopadula wants to merge 2 commits into
guglielmopadula wants to merge 2 commits into
Conversation
This branch has not been deployed
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.
Fix GPR tests for scikit-learn 1.9, black lint, and deprecated CI actions
1. GPR tests (
tests/test_reducedordermodel.py)test_predict_02andtest_loo_error_02failed (serial and parallel suites).Why:
GPR()passeskernel=Noneto sklearn. Before 1.9, sklearn's defaultwas
ConstantKernel(1.0, fixed) * RBF(1.0, fixed). Since 1.9 it is anoptimizable
C() * RBF(). With only 4 training points the RBF length scalecollapses to its lower bound (
1e-05), so results no longer match the storedreferences (
p_predsol_gpr.npy,0.595857).Change: the two tests now pass the historical kernel explicitly through a
_fixed_kernel()helper. TheGPRdefault is unchanged and still defers tosklearn.
2. Lint (
ezyrb/reducedordermodel.py)The
black --check ./ezyrbCI job failed on the newMultiReducedOrderModelmethods (lines too long, trailing whitespace, missing final newline). The file
was reformatted with black; formatting only, no code changes.
3. GitHub Actions (
.github/workflows/*.yml)GitHub is retiring the Node 20 runtime, so actions were bumped to their latest
Node 24 releases:
actions/checkoutactions/setup-pythonactions/setup-javapeter-evans/create-pull-requestpeaceiris/actions-gh-pagesbenjlevesque/short-shaIn
tutorial_exporter.yml, two actions with no Node 24 release were replacedwith shell steps:
jitterbit/get-changed-files@v1(Node 12, unmaintained) is nowgit diff --name-only ${{ github.event.before }} ${{ github.sha }}, and thecheckout uses
fetch-depth: 0.FedericoCarboni/setup-ffmpeg(still Node 20) is nowapt-get install ffmpeg.4. Supported Python versions
tester.yml,monthly-tagger.yml): dropped 3.9 and 3.10,added 3.14 and 3.15 (now 3.11–3.15).
tutorial_exporter.yml: 3.10 → 3.11, the oldest tested version.requires-pythoninpyproject.tomlis unchanged (>=3.8).