Skip to content

Commit ba1cdcf

Browse files
committed
ci: install anaconda-client via pip so the 'anaconda' binary lands on PATH
1 parent 7b4faff commit ba1cdcf

1 file changed

Lines changed: 19 additions & 9 deletions

File tree

.github/workflows/release.yml

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,14 @@ name: release
2525
on:
2626
push:
2727
tags: ['v*']
28-
workflow_dispatch: # manual trigger from the Actions tab
28+
# TEMPORARY (smoke-test phase): auto-run on every push to v0.1.0 so we
29+
# don't need the "Run workflow" UI button (which is only visible when
30+
# the workflow file exists on the default branch). REMOVE this
31+
# `branches:` block before cutting the real v0.1.0 tag — otherwise
32+
# every commit on the branch will burn ~1–2h of CI time.
33+
branches: ['v0.1.0']
34+
workflow_dispatch: # manual trigger from the Actions tab (only
35+
# shown once this workflow lands on `main`)
2936

3037
env:
3138
RAPIDS_CUDA_VERSION: "12.9"
@@ -201,15 +208,18 @@ jobs:
201208
runs-on: ubuntu-24.04
202209

203210
steps:
204-
- name: Install pixi
205-
run: |
206-
curl -fsSL https://pixi.sh/install.sh | sh
207-
echo "$HOME/.pixi/bin" >> $GITHUB_PATH
208-
209-
# Pin to v1 — v2 deprecated the `anaconda upload --user <org>`
210-
# syntax used below. Revisit after we've validated v2 flag names.
211+
# Pin to v1 — v2 deprecated the `anaconda upload --user <org>` syntax
212+
# used below. Revisit after we've validated v2 flag names.
213+
#
214+
# Use pip directly (not pixi global install): pixi v0.30+ doesn't
215+
# auto-expose binaries whose name differs from the package name, so
216+
# `pixi global install anaconda-client` would NOT put `anaconda` on
217+
# PATH. pip3 --user puts the binary in ~/.local/bin which we add to
218+
# GITHUB_PATH for subsequent steps.
211219
- name: Install anaconda-client (v1)
212-
run: pixi global install 'anaconda-client<2'
220+
run: |
221+
python3 -m pip install --break-system-packages --user 'anaconda-client<2'
222+
echo "$HOME/.local/bin" >> $GITHUB_PATH
213223
214224
- name: Download all build artifacts
215225
uses: actions/download-artifact@v4

0 commit comments

Comments
 (0)