summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorMatti Picus <matti.picus@gmail.com>2023-01-30 19:23:56 +0200
committerGitHub <noreply@github.com>2023-01-30 19:23:56 +0200
commit137670c5a76994ed045784431f8be3ea1b489864 (patch)
tree97ab5e4927bf80ca5df1630829651c3ca1a43a80 /.github
parent9d2c0197b1b7171be722c9cb2642e438c472edcc (diff)
parent25c9b78ccaabe3e99c749354a825dee0abfe620a (diff)
downloadnumpy-137670c5a76994ed045784431f8be3ea1b489864.tar.gz
Merge pull request #23127 from andyfaff/anc
BLD: use conda to install anaconda-client for upload
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/wheels.yml35
1 files changed, 31 insertions, 4 deletions
diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml
index 54ddf465d..a9e9ea9d4 100644
--- a/.github/workflows/wheels.yml
+++ b/.github/workflows/wheels.yml
@@ -122,13 +122,26 @@ jobs:
name: ${{ matrix.python }}-${{ startsWith(matrix.buildplat[1], 'macosx') && 'macosx' || matrix.buildplat[1] }}
path: ./wheelhouse/*.whl
+ - uses: conda-incubator/setup-miniconda@v2
+ with:
+ # for installation of anaconda-client, required for upload to
+ # anaconda.org
+ # default (and activated) environment name is test
+ # Note that this step is *after* specific pythons have been used to
+ # build and test the wheel
+ auto-update-conda: true
+ python-version: "3.10"
+
- name: Upload wheels
if: success()
- shell: bash
+ shell: bash -el {0}
+ # see https://github.com/marketplace/actions/setup-miniconda for why
+ # `-el {0}` is required.
env:
NUMPY_STAGING_UPLOAD_TOKEN: ${{ secrets.NUMPY_STAGING_UPLOAD_TOKEN }}
NUMPY_NIGHTLY_UPLOAD_TOKEN: ${{ secrets.NUMPY_NIGHTLY_UPLOAD_TOKEN }}
run: |
+ conda install -y anaconda-client
source tools/wheels/upload_wheels.sh
set_upload_vars
# trigger an upload to
@@ -138,6 +151,7 @@ jobs:
# https://anaconda.org/multibuild-wheels-staging/numpy
# The tokens were originally generated at anaconda.org
upload_wheels
+
build_sdist:
name: Build sdist
needs: get_commit_message
@@ -152,7 +166,8 @@ jobs:
runs-on: ubuntu-latest
env:
IS_PUSH: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') }}
- IS_SCHEDULE_DISPATCH: ${{ github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }}
+ # commented out so the sdist doesn't upload to nightly
+ # IS_SCHEDULE_DISPATCH: ${{ github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }}
steps:
- name: Checkout numpy
uses: actions/checkout@v3
@@ -190,13 +205,25 @@ jobs:
name: sdist
path: ./dist/*
+ - uses: conda-incubator/setup-miniconda@v2
+ with:
+ # for installation of anaconda-client, required for upload to
+ # anaconda.org
+ # default (and activated) environment name is test
+ # Note that this step is *after* specific pythons have been used to
+ # build and test
+ auto-update-conda: true
+ python-version: "3.10"
+
- name: Upload sdist
if: success()
- shell: bash
+ shell: bash -el {0}
env:
NUMPY_STAGING_UPLOAD_TOKEN: ${{ secrets.NUMPY_STAGING_UPLOAD_TOKEN }}
- NUMPY_NIGHTLY_UPLOAD_TOKEN: ${{ secrets.NUMPY_NIGHTLY_UPLOAD_TOKEN }}
+ # commented out so the sdist doesn't upload to nightly
+ # NUMPY_NIGHTLY_UPLOAD_TOKEN: ${{ secrets.NUMPY_NIGHTLY_UPLOAD_TOKEN }}
run: |
+ conda install -y anaconda-client
source tools/wheels/upload_wheels.sh
set_upload_vars
# trigger an upload to