Skip to content

Run the whole test suite in the conda recipes - #283

Open
antonwolfy wants to merge 3 commits into
mainfrom
run-all-tests-in-conda-recipes
Open

antonwolfy wants to merge 3 commits into
mainfrom
run-all-tests-in-conda-recipes

Conversation

@antonwolfy

Copy link
Copy Markdown
Collaborator

The conda recipes only ran test_basic.py at package test time, so test_patching.py, test_cli.py and test_freethreading.py were never run against the built conda package. That also applies to internal CI jobs that reuse the recipe's test commands.

This PR switches test.commands in both conda-recipe and conda-recipe-cf to pytest --pyargs mkl_umath, which is what the GitHub workflows already run against the installed package. source_files is dropped because meson.build installs mkl_umath/tests with the package.

It also removes run_tests.{sh,bat} from both recipes. They ran python tests/test_basic.py, which runs no tests now that the file uses pytest. Nothing called them anyway: conda-build only picks up run_test.* (singular), and no workflow invokes them.

jharlow-intel
jharlow-intel previously approved these changes Oct 15, 2026

@jharlow-intel jharlow-intel left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks, looks good! Running the full installed suite with --pyargs matches what mkl_fft, mkl_random, and mkl-service already do, and all 28 GitHub conda test jobs pass with it. Just one changelog note inline.

Comment thread CHANGELOG.md Outdated
The recipes' test commands only ran test_basic.py, so test_patching.py,
test_cli.py and test_freethreading.py were never run against the conda
package. Switch both recipes to `pytest --pyargs mkl_umath`, matching
the GitHub workflows, and drop source_files since the tests are
installed with the package.

Remove the run_tests.{sh,bat} scripts: they ran test_basic.py as a plain
script, which runs no tests since it moved to pytest, and nothing calls
them, as conda-build only picks up run_test.* (singular).
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.

2 participants