Skip to content

Commit 920fb59

Browse files
CI: Use pixi for all stages of testing (#102)
* Use pixi to provide the runtime environment for removal of the test-package from the scientific-python-nightly-wheels channel. * Use prefix-dev/setup-pixi to setup pixi with no environment created. - Use 'run-install: false' to setup pixi with no install. * Use 'pixi exec --spec' to create a temporary pixi environment with anaconda-client installed for the 'anaconda remove' command. $ pixi exec --help Run a command in a temporary environment Usage: pixi exec [OPTIONS] [COMMAND]... Arguments: [COMMAND]... The executable to run Options: -s, --spec <SPECS> Matchspecs of packages to install. If this is not provided, the package is guessed from the command
1 parent 591d26c commit 920fb59

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -96,16 +96,13 @@ jobs:
9696
name: remove-old-wheels
9797

9898
steps:
99-
- name: Install micromamba and anaconda-client
100-
uses: mamba-org/setup-micromamba@f8b8a1e23a26f60a44c853292711bacfd3eac822 # v1.9.0
99+
- name: Set up pixi
100+
uses: prefix-dev/setup-pixi@ba3bb36eb2066252b2363392b7739741bb777659 # v0.8.1
101101
with:
102-
environment-name: remove-wheels
103-
create-args: >-
104-
python=3.12
105-
anaconda-client
102+
run-install: false
106103

107104
- name: Remove test package upload
108-
shell: bash -l {0}
105+
shell: pixi exec --spec anaconda-client -- bash -e {0}
109106
run: |
110107
anaconda --token ${{ secrets.ANACONDA_TOKEN }} remove \
111108
--force \

0 commit comments

Comments
 (0)