1
name: Test Pyodide build
6
# Runs on every merge to main to upload .dev0 wheels to anaconda.org
13
# Make it possible to upload wheels manually if needed
18
'Push wheels to Anaconda if "true". Default is "false". Warning: this will overwrite existing wheels.'
21
# Upload wheels to anaconda.org on a schedule
23
# Run at 0300 hours on days 3 and 17 of the month
24
- cron: "0 3 3,17 * *"
30
build_wasm_emscripten:
31
name: Build PyWavelets for Pyodide
33
# Comment out the following line to test changes on a fork
34
if: github.repository == 'PyWavelets/pywt'
36
- name: Check out repository
37
uses: actions/checkout@v4
39
- name: Build and test PyWavelets
40
uses: pypa/cibuildwheel@bd033a44476646b606efccdd5eed92d5ea1d77ad # v2.20.0
42
CIBW_PLATFORM: pyodide
43
CIBW_TEST_REQUIRES: pytest matplotlib
44
CIBW_TEST_COMMAND: python -c "import pywt; pywt.test(extra_argv=['-m', 'not slow'])"
46
# https://anaconda.org/scientific-python-nightly-wheels/pywavelets
47
# WARNING: this job will overwrite existing wheels.
48
- name: Push wheels to Anaconda PyPI index
50
(github.repository == 'PyWavelets/pywt') &&
51
(github.event_name == 'push' && github.ref == 'refs/heads/main') ||
52
(github.event_name == 'workflow_dispatch' && github.event.inputs.push_wheels == 'true') ||
53
(github.event_name == 'schedule')
54
uses: scientific-python/upload-nightly-action@b67d7fcc0396e1128a474d1ab2b48aa94680f9fc # v0.5.0
56
artifacts_path: wheelhouse/
57
anaconda_nightly_upload_token: ${{ secrets.ANACONDA_ORG_UPLOAD_TOKEN }}