Skip to content

Commit a5ae601

Browse files
committed
attempting to tighten test error bounds in a couple cases, hopefully results are same in cloud, and attempting to get coverage to work across multiple processes, because right now it doesn't seem to be
1 parent 767e5b2 commit a5ae601

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

.github/workflows/test.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,15 @@ jobs:
1515
with:
1616
python-version: '3.13' # because cvxopt binaries for 3.14 don't yet exist, and building is terrible
1717
- name: tests and coverage
18-
run: |
18+
run: | # some extra stuff here to make sure coverage works across multiprocessing
1919
pip install -e .[advanced,dev] coveralls
20-
coverage run --source=pynumdiff --omit="pynumdiff/_version.py,pynumdiff/tests/*,pynumdiff/utils/old_pi_cruise_control.py" -m pytest -s
20+
touch .coveragerc
21+
echo "[run]" > .coveragerc
22+
echo "concurrency = multiprocessing" >> .coveragerc
23+
echo "parallel = true" >> .coveragerc
24+
export COVERAGE_PROCESS_START=.coveragerc
25+
coverage run --parallel-mode --source=pynumdiff --omit="pynumdiff/_version.py,pynumdiff/tests/*,pynumdiff/utils/old_pi_cruise_control.py" -m pytest -s
26+
coverage combine
2127
coverage xml
2228
- uses: coverallsapp/github-action@v2
2329
with:

pynumdiff/tests/test_diff_methods.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def spline_irreg_step(*args, **kwargs): return splinediff(*args, **kwargs)
134134
[(0, 0), (1, 1), (0, -1), (1, 1)],
135135
[(0, 0), (3, 3), (0, 0), (3, 3)]],
136136
savgoldiff: [[(-7, -7), (-13, -14), (0, -1), (0, 0)],
137-
[(-7, -7), (-13, -13), (0, -1), (0, 0)],
137+
[(-7, -8), (-13, -13), (0, -1), (0, 0)],
138138
[(-2, -2), (-1, -1), (0, -1), (0, 0)],
139139
[(0, -1), (0, 0), (0, 0), (1, 0)],
140140
[(1, 1), (2, 2), (1, 1), (2, 2)],
@@ -193,7 +193,7 @@ def spline_irreg_step(*args, **kwargs): return splinediff(*args, **kwargs)
193193
[(0, 0), (1, 0), (0, -1), (1, 0)],
194194
[(1, 1), (2, 2), (1, 1), (2, 2)],
195195
[(1, 1), (3, 3), (1, 1), (3, 3)]],
196-
jerk_sliding: [[(-25, -25), (-16, -16), (0, -1), (1, 0)],
196+
jerk_sliding: [[(-25, -25), (-16, -17), (0, -1), (1, 0)],
197197
[(-14, -14), (-14, -14), (0, -1), (0, 0)],
198198
[(-14, -14), (-14, -14), (0, -1), (0, 0)],
199199
[(-1, -1), (0, 0), (0, -1), (0, 0)],

0 commit comments

Comments
 (0)