Skip to content

CI Add doc tests to github actions - #32730

Merged
lesteve merged 2 commits into
scikit-learn:mainfrom
FrancoisPgm:ci_doc_test
Nov 18, 2025
Merged

lesteve merged 2 commits into
scikit-learn:mainfrom
FrancoisPgm:ci_doc_test

Conversation

@FrancoisPgm

Copy link
Copy Markdown
Member

Reference Issues/PRs

Towards #32434

What does this implement/fix? Explain your changes.

Add a step in unit_tests GHA to run the test_docs.sh script.

Any other comments?

The script checks for scipy_doctest to be installed to run, so until a build with this version of scipy is added to the matrix it will not execute the tests in the GHA workflow.

@github-actions

github-actions Bot commented Nov 17, 2025 •

Copy link
Copy Markdown

✔️ Linting Passed

All linting checks passed. Your pull request is in excellent shape! ☀️

Generated for commit: e8b4202. Link to the linter CI: here

@lesteve lesteve left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

Comment thread .github/workflows/unit-tests.yml Resolved
run: bash -l build_tools/azure/test_script.sh

- name: Run doc tests
run: bash -l build_tools/azure/test_docs.sh

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could do the same as Azure and skip this when [all random seeds] marker is used, but let's keep it simple for now ...

We can revisit later if needed.

@lesteve

lesteve commented Nov 18, 2025

Copy link
Copy Markdown
Member

I enabled auto-merge.

@lesteve
lesteve enabled auto-merge (squash) November 18, 2025 07:58
@lesteve

lesteve commented Nov 18, 2025 •

Copy link
Copy Markdown
Member

If you feel like it, feel free to do the similar test "pytest soft dependency" one from #32434.

It could also be a good opportunity to revisit #31192 (comment). I don't remember the details but I seem to remember the "pytest soft dependency" was not fully working (or maybe it was not used in the array API build), not sure.

Not sure whether we are testing this thoroughly though because I would have expected a failure somewhere on this PR. I guess we don't have a build with both array_api_strict installed and CHECK_PYTEST_SOFT_DEPENDENCY?

@lesteve
lesteve merged commit 9ea0b1f into scikit-learn:main Nov 18, 2025
@lesteve lesteve mentioned this pull request Nov 26, 2025
11 of 14 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants