|
5 | 5 | branches:
|
6 | 6 | - main
|
7 | 7 | - 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 | + description: > |
| 25 | + Push wheels to Anaconda.org if the build is successful, can be 'true' or 'false'. Default is 'false'. Warning: this will overwrite existing wheels. |
| 26 | + required: false |
| 27 | + default: 'false' |
8 | 28 |
|
9 | 29 | env:
|
10 | 30 | FORCE_COLOR: 3
|
@@ -90,3 +110,15 @@ jobs:
|
90 | 110 | source .venv-pyodide/bin/activate
|
91 | 111 | cd ..
|
92 | 112 | pytest --pyargs numpy -m "not slow"
|
| 113 | +
|
| 114 | + # Push to https://anaconda.org/scientific-python-nightly-wheels/numpy |
| 115 | + # WARNING: this job will overwrite any existing WASM wheels. |
| 116 | + - name: Push to Anaconda PyPI index |
| 117 | + if: >- |
| 118 | + (github.repository == 'numpy/numpy') && |
| 119 | + (github.event_name == 'workflow_dispatch' && github.event.inputs.push_wheels == 'true') || |
| 120 | + (github.event_name == 'schedule') |
| 121 | + uses: scientific-python/upload-nightly-action@b67d7fcc0396e1128a474d1ab2b48aa94680f9fc # v0.5.0 |
| 122 | + with: |
| 123 | + artifacts_path: dist/ |
| 124 | + anaconda_nightly_upload_token: ${{ secrets.NUMPY_NIGHTLY_UPLOAD_TOKEN }} |
0 commit comments