Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2f99a2c

Browse filesBrowse files
authored
CI: move last Azure job to GHA (scipy#18414)
* CI: linux 32 bit azure-->GHA * CI: linux 32 bit azure-->GHA * CI: linux 32 bit azure-->GHA * CI: linux-32 bump test tolerances * TST: skip BreitWigner test on Linux32 * TST: skip BreitWigner test on Linux32 * MAINT: use suggestion from review
1 parent f0bc2b5 commit 2f99a2c
Copy full SHA for 2f99a2c

File tree

Expand file treeCollapse file tree

5 files changed

+45
-102
lines changed
Filter options
Expand file treeCollapse file tree

5 files changed

+45
-102
lines changed

‎.github/workflows/linux_meson.yml

Copy file name to clipboardExpand all lines: .github/workflows/linux_meson.yml
+30Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,3 +329,33 @@ jobs:
329329
330330
export OPENBLAS_NUM_THREADS=1
331331
python dev.py test -j2 --mode full -- --cov --cov-report term-missing
332+
333+
#################################################################################
334+
linux_32bit:
335+
name: Linux - 32 bit
336+
if: "github.repository == 'scipy/scipy' || github.repository == ''"
337+
runs-on: ubuntu-latest
338+
# I tried running directly in a container:, using the image: and options:
339+
# entries. Unfortunately at this time options: does not seem to listen to
340+
# --platform linux/i386.
341+
steps:
342+
- uses: actions/checkout@v3
343+
with:
344+
submodules: recursive
345+
346+
- name: build + test
347+
run: |
348+
set -euo pipefail
349+
docker pull quay.io/pypa/manylinux2014_i686
350+
docker run -v $(pwd):/scipy --platform=linux/i386 quay.io/pypa/manylinux2014_i686 /bin/bash -c "cd /scipy && \
351+
uname -a && \
352+
basedir=\$(python3.9 tools/openblas_support.py) && \
353+
cp -r \$basedir/lib/* /usr/local/lib && \
354+
cp \$basedir/include/* /usr/local/include && \
355+
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig && \
356+
python3.9 -m venv test && \
357+
source test/bin/activate && \
358+
python -m pip install doit click rich_click pydevtool meson ninja && \
359+
python -m pip install numpy==1.21.6 cython==0.29.33 pybind11 pytest pytest-timeout pytest-xdist pytest-env Pillow mpmath pythran pooch meson && \
360+
python dev.py build && \
361+
LD_LIBRARY_PATH=/usr/local/lib python dev.py test"

‎azure-pipelines.yml

Copy file name to clipboardExpand all lines: azure-pipelines.yml
-99Lines changed: 0 additions & 99 deletions
This file was deleted.

‎scipy/spatial/transform/tests/test_rotation_spline.py

Copy file name to clipboardExpand all lines: scipy/spatial/transform/tests/test_rotation_spline.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@ def test_spline_properties():
125125
rv0 = spline(times).as_rotvec()
126126
rvm = spline(times - h).as_rotvec()
127127
rvp = spline(times + h).as_rotvec()
128-
assert_allclose(rv0, 0.5 * (rvp + rvm), rtol=1e-15)
128+
# rtol bumped from 1e-15 to 1.5e-15 in gh18414 for linux 32 bit
129+
assert_allclose(rv0, 0.5 * (rvp + rvm), rtol=1.5e-15)
129130

130131
r0 = spline(times, 1)
131132
rm = spline(times - h, 1)

‎scipy/special/tests/test_hyp2f1.py

Copy file name to clipboardExpand all lines: scipy/special/tests/test_hyp2f1.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1869,7 +1869,7 @@ def test_region4(self, hyp2f1_test_case):
18691869
c=2.050308316530781,
18701870
z=(0.03793103448275881+1.024137931034483j),
18711871
expected=(0.5527670397711952+2.697662715303637j),
1872-
rtol=1e-15,
1872+
rtol=1.2e-15, # rtol bumped from 1e-15 in gh18414
18731873
),
18741874
),
18751875
pytest.param(

‎scipy/stats/tests/test_continuous_basic.py

Copy file name to clipboardExpand all lines: scipy/stats/tests/test_continuous_basic.py
+12-1Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import sys
12
import numpy as np
23
import numpy.testing as npt
34
import pytest
@@ -35,6 +36,7 @@
3536
# to _distr_params
3637

3738
DECIMAL = 5 # specify the precision of the tests # increased from 0 to 5
39+
_IS_32BIT = (sys.maxsize < 2**32)
3840

3941
# For skipping test_cont_basic
4042
distslow = ['recipinvgauss', 'vonmises', 'kappa4', 'vonmises_line',
@@ -196,7 +198,12 @@ def test_cont_basic(distname, arg, sn, n_fit_samples):
196198

197199
check_named_args(distfn, x, arg, locscale_defaults, meths)
198200
check_random_state_property(distfn, arg)
199-
check_pickling(distfn, arg)
201+
202+
if distfn in ['rel_breitwigner'] and _IS_32BIT:
203+
# gh18414
204+
pytest.skip("fails on Linux 32-bit")
205+
else:
206+
check_pickling(distfn, arg)
200207
check_freezing(distfn, arg)
201208

202209
# Entropy
@@ -338,6 +345,10 @@ def test_rvs_broadcast(dist, shape_args):
338345
if dist in ['gausshyper', 'studentized_range']:
339346
pytest.skip("too slow")
340347

348+
if dist in ['rel_breitwigner'] and _IS_32BIT:
349+
# gh18414
350+
pytest.skip("fails on Linux 32-bit")
351+
341352
# If shape_only is True, it means the _rvs method of the
342353
# distribution uses more than one random number to generate a random
343354
# variate. That means the result of using rvs with broadcasting or

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.