Repository navigation
CI Add pytest soft dependency test to github actions - #32738
Conversation
|
Just to test this can you add We could even leave it so at least we would have a array-API + |
|
|
||
| - name: Run pytest soft dependency test | ||
| run: bash -l build_tools/azure/test_pytest_soft_dependency.sh | ||
| if: ${{ env.CHECK_PYTEST_SOFT_DEPENDENCY == 'true' && needs.retrieve-selected-tests.outputs.tests == ''}} |
There was a problem hiding this comment.
No strong opinion on needs.retrieve-selected-tests.outputs.tests == '' condition.
- in general if you use
[all random seeds]you only care about running a few selected tests with all random seeds, you don't really care about running the doctests - at the same time running pytest soft dependency tests is quite quick ~15s on a recent Azure build log
But if we add it for running pytest soft dependency we may as well add it in the "run doctests" above.
Running doctests is a bit longer (~3 minutes on the first recent Azure build log I could find) ...
There was a problem hiding this comment.
Since I had to add the check on CHECK_PYTEST_SOFT_DEPENDENCY I thought I might as well add the test on the [all random seeds]. I'll add it to the run doctests.
… and add the condition on [all random seeds] to the doctest tests
|
So macOS arm build fails, turns out that Context: IIRC for some partly historic reason, we have at least one build that doesn't install in editable mode and we cd into |
|
Nice it looks like this is working. I would use |
|
I couldn't resist pushing a test commit I will revert it once we have the answer. Edit: the pytest soft dependency check is indeed failing which is reassuring see build log |
… soft dependency test" This reverts commit a68e381.
|
Let's merge this one, thanks! |
Reference Issues/PRs
Towards #32434
What does this implement/fix? Explain your changes.
Add a step in unit_tests GHA to run the
test_pytest_soft_dependency.shscript.Any other comments?
I tried to have a look at #31192 (comment), and it seems to me that there was a test with both with both
array_api_strictandCHECK_PYTEST_SOFT_DEPENDENCYin this build which hasCHECK_PYTEST_SOFT_DEPENDENCY: 'true'and a lock file witharray_api_strict. But I'm not sure which exact mechanism in the modifications of #31192 was supposed to breaktest_estimator_checks.py.