Skip to content

Commit c74ba64

Browse files
committed
obspy: Test optional deps and assert no grafted libs
1 parent 223272f commit c74ba64

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎.github/workflows/build-obspy.yml‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,13 @@ jobs:
7777
# Only our registry has riscv64 wheels for these; keep a newer PyPI sdist from winning.
7878
CIBW_ENVIRONMENT: >-
7979
PIP_EXTRA_INDEX_URL=https://pypi.riseproject.dev/simple/
80-
PIP_ONLY_BINARY=numpy,scipy,matplotlib,contourpy,kiwisolver,pillow,lxml,sqlalchemy,pyproj
80+
PIP_ONLY_BINARY=numpy,scipy,matplotlib,contourpy,kiwisolver,pillow,lxml,sqlalchemy,pyproj,shapely,cartopy,rpds-py
8181
# --no-report: do not upload results to upstream's tests.obspy.org report server.
82+
# Network tests stay deselected (obspy-runtests' default).
8283
CIBW_TEST_COMMAND: obspy-runtests --no-report
8384
CIBW_TEST_EXTRAS: tests
85+
# Optional deps outside the tests extra; without them 25 tests skip.
86+
CIBW_TEST_REQUIRES: cartopy geographiclib pyshp jsonschema
8487

8588
- name: Check the wheel ships the licences and the compiled libraries
8689
run: |
@@ -92,6 +95,8 @@ jobs:
9295
assert any(n.endswith("dist-info/licenses/LICENSE.txt") for n in names), names
9396
libs = sorted(n for n in names if n.startswith("obspy/lib/") and n.endswith(".so"))
9497
assert len(libs) == 7, libs
98+
# Nothing grafted by auditwheel (e.g. GCC runtime), so no gpl_sources job is needed.
99+
assert not any(".libs/" in n for n in names), [n for n in names if ".libs/" in n]
95100
EOF
96101
97102
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1

0 commit comments

Comments
 (0)