Skip to content

Commit 52ce35f

Browse files
Upload nightly wheels for PyWavelets to the Scientific Python Nightly Wheels index on Anaconda (#710)
1 parent 8d09036 commit 52ce35f

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/emscripten.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,18 @@ on:
99
branches:
1010
- master
1111
- v1.**
12+
# Make it possible to upload wheels manually if needed
13+
workflow_dispatch:
14+
inputs:
15+
push_wheels:
16+
description: >
17+
'Push wheels to Anaconda if "true". Default is "false". Warning: this will overwrite existing wheels.'
18+
required: false
19+
default: "false"
20+
# Upload wheels to Anaconda on a schedule
21+
schedule:
22+
# Run at 0300 hours on days 3 and 17 of the month
23+
- cron: "0 3 3,17 * *"
1224

1325
env:
1426
FORCE_COLOR: 3
@@ -58,3 +70,12 @@ jobs:
5870
pip install matplotlib pytest
5971
python -c "import pywt; print(pywt.__version__)"
6072
pytest --pyargs pywt
73+
74+
# https://anaconda.org/scientific-python-nightly-wheels/pywavelets
75+
# WARNING: this job will overwrite existing wheels.
76+
- name: Push to Anaconda PyPI index
77+
if: (github.repository == 'PyWavelets/pywt') && (github.event_name == 'push' && github.ref == 'refs/heads/master') || (github.event_name == 'workflow_dispatch' && github.event.inputs.push_wheels == 'true') || (github.event_name == 'schedule')
78+
uses: scientific-python/upload-nightly-action@b67d7fcc0396e1128a474d1ab2b48aa94680f9fc # v0.5.0
79+
with:
80+
artifacts_path: dist/
81+
anaconda_nightly_upload_token: ${{ secrets.ANACONDA_ORG_UPLOAD_TOKEN }}

0 commit comments

Comments
 (0)