Skip to content

Commit a301673

Browse files
authored
Merge pull request #197 from bashtage/update-anaconda
More changes
2 parents a8a1f08 + 735e4ff commit a301673

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

.github/workflows/build-wheels.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff 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"

0 commit comments

Comments
 (0)