Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Only run scikit-learn tests multiple times
The generic tests that don't use scikit-learn should only be tested once
(per platform).
  • Loading branch information
PGijsbers committed Feb 23, 2023
commit 9ad6daeac503bfa486bb9f693ec0793c063f0a9c
5 changes: 4 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
scikit-learn: 0.23.1
code-cov: true
os: ubuntu-latest
all-tests: true
- os: windows-latest
scikit-learn: 0.24.*
fail-fast: false
Expand Down Expand Up @@ -62,7 +63,9 @@ jobs:
if: matrix.os == 'ubuntu-latest'
run: |
if [ ${{ matrix.code-cov }} ]; then codecov='--cov=openml --long --cov-report=xml'; fi
pytest -n 4 --durations=20 --timeout=600 --timeout-method=thread --dist load -sv $codecov --reruns 5 --reruns-delay 1
# Most of the time, running only the scikit-learn tests is sufficient
if [ ! ${{ matrix.all-tests }} ]; then sklearn='-m "sklearn"'; fi
pytest -n 4 --durations=20 --timeout=600 --timeout-method=thread --dist load -sv $codecov $sklearn_select --reruns 5 --reruns-delay 1
Comment thread
PGijsbers marked this conversation as resolved.
Outdated
- name: Run tests on Windows
if: matrix.os == 'windows-latest'
run: | # we need a separate step because of the bash-specific if-statement in the previous one.
Expand Down