Skip to content

Commit e191a5f

Browse files
authored
Merge pull request numpy#26134 from agriyakhetarpal/upload-emscripten-wheels-nightly
CI, BLD: Push NumPy's Emscripten/Pyodide wheels nightly to Anaconda.org PyPI index
2 parents 3fca215 + 31411af commit e191a5f

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/emscripten.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,28 @@ on:
55
branches:
66
- main
77
- maintenance/**
8+
# Note: this workflow gets triggered on the same schedule as the
9+
# wheels.yml workflow, with the exception that this workflow runs
10+
# the test suite for the Pyodide wheel too, prior to uploading it.
11+
#
12+
# Run on schedule to upload to Anaconda.org
13+
schedule:
14+
# ┌───────────── minute (0 - 59)
15+
# │ ┌───────────── hour (0 - 23)
16+
# │ │ ┌───────────── day of the month (1 - 31)
17+
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
18+
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
19+
# │ │ │ │ │
20+
- cron: "42 2 * * SUN,WED"
21+
workflow_dispatch:
22+
inputs:
23+
push_wheels:
24+
# Can be 'true' or 'false'. Default is 'false'.
25+
# Warning: this will overwrite existing wheels.
26+
description: >
27+
Push wheels to Anaconda.org if the build succeeds
28+
required: false
29+
default: 'false'
830

931
env:
1032
FORCE_COLOR: 3
@@ -90,3 +112,15 @@ jobs:
90112
source .venv-pyodide/bin/activate
91113
cd ..
92114
pytest --pyargs numpy -m "not slow"
115+
116+
# Push to https://anaconda.org/scientific-python-nightly-wheels/numpy
117+
# WARNING: this job will overwrite any existing WASM wheels.
118+
- name: Push to Anaconda PyPI index
119+
if: >-
120+
(github.repository == 'numpy/numpy') &&
121+
(github.event_name == 'workflow_dispatch' && github.event.inputs.push_wheels == 'true') ||
122+
(github.event_name == 'schedule')
123+
uses: scientific-python/upload-nightly-action@b67d7fcc0396e1128a474d1ab2b48aa94680f9fc # v0.5.0
124+
with:
125+
artifacts_path: dist/
126+
anaconda_nightly_upload_token: ${{ secrets.NUMPY_NIGHTLY_UPLOAD_TOKEN }}

0 commit comments

Comments
 (0)