File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -99,10 +99,17 @@ jobs:
9999 echo "TOKEN=$MULTIBUILD_WHEELS_STAGING_ACCESS" >> $GITHUB_ENV
100100 fi
101101
102- # Used to ensure python is available for wheel upload
103- - uses : actions/setup-python@v6
102+ - uses : conda-incubator/setup-miniconda@v3
104103 with :
105- python-version : ' 3.x'
104+ # for installation of anaconda-client, required for upload to
105+ # anaconda.org
106+ # default (and activated) environment name is test
107+ # Note that this step is *after* specific pythons have been used to
108+ # build and test the wheel
109+ auto-update-conda : true
110+ python-version : " 3.11"
111+ miniforge-version : latest
112+ conda-remove-defaults : " true"
106113
107114 - name : Upload wheels
108115 if : ${{ always() }}
@@ -122,12 +129,9 @@ jobs:
122129 # generated at anaconda.org for scientific-python-nightly-wheels
123130 echo ${PWD}
124131 if [ ${ANACONDA_UPLOAD} == true ]; then
132+ conda install -y anaconda-client
125133 echo "Uploading to ${ANACONDA_ORG}"
126134 # main branches of these two packages
127- python --version
128- python -m pip install "cython<3" packaging
129- python -m pip list
130- python -m pip install anaconda-cli-base anaconda-client anaconda-cli
131135 ls ./wheelhouse/*.whl
132136 anaconda --verbose -t ${TOKEN} upload --force -u ${ANACONDA_ORG} ./wheelhouse/*.whl
133137 echo "PyPI-style index: https://pypi.anaconda.org/$ANACONDA_ORG/simple"
You can’t perform that action at this time.
0 commit comments