Skip to content

Commit 8907fc0

Browse files
ci: run all examples including slow ones
After fixing the critical memory bug in provide_at_least(), all 27 examples now complete successfully under 10GB memory limit, including the previously "slow" examples that were timing out due to memory issues. Changes: - Remove skip logic for slow examples (benefits_of_sex, genealogies_with_selection, etc.) - Run all *.py examples serially in CI - All examples now complete in reasonable time with fixed memory usage Previously slow examples were failing due to the integer overflow bug that allocated 2 billion clones. With the fix, these examples complete successfully and can be safely run in CI. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 99510e4 commit 8907fc0

File tree

1 file changed

+6
-20
lines changed

1 file changed

+6
-20
lines changed

cibuildwheel.toml

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,11 @@ linux.before-test = [
3131
"pip install 'biopython' 'matplotlib' 'numpy<2' 'pandas' 'pygments' 'scipy'"
3232
]
3333

34-
# Run examples serially (one at a time) without parallel to avoid memory issues in CI
34+
# Run ALL examples serially (one at a time) - including slow ones after memory fixes
3535
linux.test-command = [
3636
"""cd {project}/examples && for f in *.py; do
37-
case "$f" in
38-
benefits_of_sex.py|genealogies_with_selection.py|measuring_fixation_probabilities.py|multi_sample_adaptive.py|mutation_selection_balance_highd.py|neutral_LD_highd.py|speed_highd.py|speed_lowd.py)
39-
echo "Skipping slow example: $f"
40-
;;
41-
*)
42-
echo "Testing $f..."
43-
MPLBACKEND=Agg python3 "$f" || exit 1
44-
;;
45-
esac
37+
echo "Testing $f..."
38+
MPLBACKEND=Agg python3 "$f" || exit 1
4639
done"""
4740
]
4841

@@ -51,17 +44,10 @@ macos.before-test = [
5144
"pip install 'biopython' 'matplotlib' 'numpy<2' 'pandas' 'pygments' 'scipy'"
5245
]
5346

54-
# Run same tests as Linux for consistency - serially without parallel
47+
# Run ALL examples serially - including slow ones after memory fixes
5548
macos.test-command = [
5649
"""cd {project}/examples && for f in *.py; do
57-
case "$f" in
58-
benefits_of_sex.py|genealogies_with_selection.py|measuring_fixation_probabilities.py|multi_sample_adaptive.py|mutation_selection_balance_highd.py|neutral_LD_highd.py|speed_highd.py|speed_lowd.py)
59-
echo "Skipping slow example: $f"
60-
;;
61-
*)
62-
echo "Testing $f..."
63-
MPLBACKEND=Agg python3 "$f" || exit 1
64-
;;
65-
esac
50+
echo "Testing $f..."
51+
MPLBACKEND=Agg python3 "$f" || exit 1
6652
done"""
6753
]

0 commit comments

Comments
 (0)