Skip to content

Commit 5d84289

Browse files
authored
CI/TST: Skip Matplotlib for cp315 Pyodide testing (#895)
* CI: Bump cibuildwheel to 4.3.5 * CI: move Pyodide test settings to `pyproject.toml` * CI: Skip Matplotlib for cp315 Pyodide tests
2 parents 7b9e57e + ca427d8 commit 5d84289

3 files changed

Lines changed: 15 additions & 8 deletions

File tree

‎.github/workflows/emscripten.yml‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,9 @@ jobs:
4646
persist-credentials: false
4747

4848
- name: Build and test PyWavelets
49-
uses: pypa/cibuildwheel@b9e566a2b284570af229f6c2a33673410d0389a3 # v4.3.4
49+
uses: pypa/cibuildwheel@f9b966cfadf4109556cadc5bb39ddb72d0ce664e # v4.3.5
5050
env:
5151
CIBW_PLATFORM: pyodide
52-
CIBW_TEST_REQUIRES: pytest matplotlib
53-
CIBW_TEST_COMMAND: python -c "import pywt; pywt.test(extra_argv=['-m', 'not slow'])"
5452

5553
# https://anaconda.org/scientific-python-nightly-wheels/pywavelets
5654
# WARNING: this job will overwrite existing wheels.

‎.github/workflows/wheel_tests_and_release.yml‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
python-version: "3.12"
6161

6262
- name: Build the wheel
63-
uses: pypa/cibuildwheel@b9e566a2b284570af229f6c2a33673410d0389a3 # v4.3.4
63+
uses: pypa/cibuildwheel@f9b966cfadf4109556cadc5bb39ddb72d0ce664e # v4.3.5
6464
with:
6565
output-dir: dist
6666
env:
@@ -92,7 +92,7 @@ jobs:
9292
python-version: "3.12"
9393

9494
- name: Build the wheel
95-
uses: pypa/cibuildwheel@b9e566a2b284570af229f6c2a33673410d0389a3 # v4.3.4
95+
uses: pypa/cibuildwheel@f9b966cfadf4109556cadc5bb39ddb72d0ce664e # v4.3.5
9696
with:
9797
output-dir: dist
9898
env:
@@ -130,7 +130,7 @@ jobs:
130130

131131
- name: Build wheels for CPython (macOS) (x86_64)
132132
if: matrix.cibw_arch == 'x86_64'
133-
uses: pypa/cibuildwheel@b9e566a2b284570af229f6c2a33673410d0389a3 # v4.3.4
133+
uses: pypa/cibuildwheel@f9b966cfadf4109556cadc5bb39ddb72d0ce664e # v4.3.5
134134
with:
135135
output-dir: dist
136136
env:
@@ -139,7 +139,7 @@ jobs:
139139

140140
- name: Build wheels for CPython (macOS) (arm64)
141141
if: matrix.cibw_arch == 'arm64'
142-
uses: pypa/cibuildwheel@b9e566a2b284570af229f6c2a33673410d0389a3 # v4.3.4
142+
uses: pypa/cibuildwheel@f9b966cfadf4109556cadc5bb39ddb72d0ce664e # v4.3.5
143143
with:
144144
output-dir: dist
145145
env:
@@ -198,7 +198,7 @@ jobs:
198198
architecture: arm64
199199

200200
- name: Build Windows wheels for CPython
201-
uses: pypa/cibuildwheel@b9e566a2b284570af229f6c2a33673410d0389a3 # v4.3.4
201+
uses: pypa/cibuildwheel@f9b966cfadf4109556cadc5bb39ddb72d0ce664e # v4.3.5
202202
with:
203203
output-dir: dist
204204
env:

‎pyproject.toml‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,15 @@ documentation = "https://pywavelets.readthedocs.io/"
5454
config-settings = {setup-args = ["--vsenv"]}
5555
before-build = "bash {project}/util/cibw_before_build_win.sh"
5656

57+
[tool.cibuildwheel.pyodide]
58+
test-requires = ["pytest", "matplotlib"]
59+
test-command = '''python -c "import pywt; pywt.test(extra_argv=['-m', 'not slow'])"'''
60+
61+
[[tool.cibuildwheel.overrides]]
62+
# matplotlib is not available for cp315 on Pyodide yet
63+
select = "cp315-pyodide_wasm32"
64+
test-requires = ["pytest"]
65+
5766

5867
[tool.ruff]
5968
line-length = 88

0 commit comments

Comments
 (0)