Skip to content

Commit 9e14f82

Browse files
committed
Add nightly wheel uploads to anaconda.org
1 parent 1ba7fd9 commit 9e14f82

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/wheels.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,37 @@ jobs:
147147
name: ${{ matrix.python }}-${{ matrix.buildplat[1] }}-${{ matrix.buildplat[2] }}
148148
path: ./dist/*.whl
149149

150+
# We upload nightlies only on cron job runs, so it doesn't overlap with
151+
# builds from which we publish to PyPI - we don't want these extra
152+
# dependencies when building release artifacts.
153+
- name: install micromamba
154+
# win-arm64 is unsupported by micromamba at the moment
155+
if: github.event_name == 'schedule' && matrix.buildplat[1] != 'win_arm64'
156+
uses: mamba-org/setup-micromamba@b09ef9b599704322748535812ca03efb2625677b
157+
with:
158+
# For installation of anaconda-client, required for upload to anaconda.org
159+
init-shell: bash
160+
environment-name: upload-env
161+
create-args: >-
162+
anaconda-client
163+
164+
- name: win-arm64 install anaconda client
165+
if: github.event_name == 'schedule' && matrix.buildplat[1] == 'win_arm64'
166+
run: |
167+
# Rust installation needed for rpds-py.
168+
Invoke-WebRequest https://static.rust-lang.org/rustup/dist/aarch64-pc-windows-msvc/rustup-init.exe -UseBasicParsing -Outfile rustup-init.exe
169+
.\rustup-init.exe -y
170+
$env:PATH="$env:PATH;$env:USERPROFILE\.cargo\bin"
171+
pip install anaconda-client
172+
173+
- name: Upload to anaconda.org
174+
if: github.event_name == 'schedule' && github.repository == 'numpy/numpy-release'
175+
shell: bash -el {0} # required for micromamba
176+
env:
177+
TOKEN: ${{ secrets.NUMPY_NIGHTLY_UPLOAD_TOKEN }}
178+
run: |
179+
anaconda -q -t ${TOKEN} upload --force -u scientific-python-nightly-wheels ./dist/*.whl
180+
150181
build_sdist:
151182
name: Build sdist
152183
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)