You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+43-21Lines changed: 43 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ GitHub Action to set up the [pixi](https://github.com/prefix-dev/pixi) package m
23
23
## Usage
24
24
25
25
```yml
26
-
- uses: prefix-dev/setup-pixi@v0.9.0
26
+
- uses: prefix-dev/setup-pixi@v0.9.1
27
27
with:
28
28
pixi-version: v0.49.0
29
29
@@ -35,7 +35,7 @@ GitHub Action to set up the [pixi](https://github.com/prefix-dev/pixi) package m
35
35
36
36
> [!WARNING]
37
37
> Since pixi is not yet stable, the API of this action may change between minor versions.
38
-
> Please pin the versions of this action to a specific version (i.e., `prefix-dev/setup-pixi@v0.9.0`) to avoid breaking changes.
38
+
> Please pin the versions of this action to a specific version (i.e., `prefix-dev/setup-pixi@v0.9.1`) to avoid breaking changes.
39
39
> You can automatically update the version of this action by using [Dependabot](https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot).
40
40
>
41
41
> Put the following in your `.github/dependabot.yml` file to enable Dependabot for your GitHub Actions:
@@ -74,7 +74,7 @@ In order to not exceed the [10 GB cache size limit](https://docs.github.com/en/a
74
74
This can be done by setting the `cache-write` argument.
There are currently three ways to authenticate with pixi:
167
+
There are currently five ways to authenticate with pixi:
149
168
150
169
- using a token
151
170
- using a username and password
152
171
- using a conda-token
153
172
- using an S3 key pair
173
+
- using keyring for PyPI registries
154
174
155
175
For more information, see the [pixi documentation](https://prefix.dev/docs/pixi/authentication).
156
176
@@ -165,7 +185,7 @@ Specify the token using the `auth-token` input argument.
165
185
This form of authentication (bearer token in the request headers) is mainly used at [prefix.dev](https://prefix.dev).
166
186
167
187
```yml
168
-
- uses: prefix-dev/setup-pixi@v0.9.0
188
+
- uses: prefix-dev/setup-pixi@v0.9.1
169
189
with:
170
190
auth-host: prefix.dev
171
191
auth-token: ${{ secrets.PREFIX_DEV_TOKEN }}
@@ -177,7 +197,7 @@ Specify the username and password using the `auth-username` and `auth-password`
177
197
This form of authentication (HTTP Basic Auth) is used in some enterprise environments with [artifactory](https://jfrog.com/artifactory) for example.
178
198
179
199
```yml
180
-
- uses: prefix-dev/setup-pixi@v0.9.0
200
+
- uses: prefix-dev/setup-pixi@v0.9.1
181
201
with:
182
202
auth-host: custom-artifactory.com
183
203
auth-username: ${{ secrets.PIXI_USERNAME }}
@@ -190,7 +210,7 @@ Specify the conda-token using the `auth-conda-token` input argument.
190
210
This form of authentication (token is encoded in URL: `https://my-quetz-instance.com/t/<token>/get/custom-channel`) is used at [anaconda.org](https://anaconda.org) or with [quetz instances](https://github.com/mamba-org/quetz).
191
211
192
212
```yml
193
-
- uses: prefix-dev/setup-pixi@v0.9.0
213
+
- uses: prefix-dev/setup-pixi@v0.9.1
194
214
with:
195
215
auth-host: anaconda.org # or my-quetz-instance.com
196
216
auth-conda-token: ${{ secrets.CONDA_TOKEN }}
@@ -202,7 +222,7 @@ Specify the S3 key pair using the `auth-access-key-id` and `auth-secret-access-k
202
222
You can also specify the session token using the `auth-session-token` input argument.
@@ -218,11 +238,13 @@ See the [pixi documentation](https://pixi.sh/latest/advanced/s3) for more inform
218
238
You can specify whether to use keyring to look up credentials for PyPI.
219
239
220
240
```yml
221
-
- uses: prefix-dev/setup-pixi@v0.9.0
241
+
- uses: prefix-dev/setup-pixi@v0.9.1
222
242
with:
223
243
pypi-keyring-provider: subprocess # one of 'subprocess', 'disabled'
224
244
```
225
245
246
+
You can use the [`global-environments`](#global-environments) input to install `keyring` and its backends.
247
+
226
248
### Custom shell wrapper
227
249
228
250
`setup-pixi` allows you to run command inside of the pixi environment by specifying a custom shell wrapper with `shell: pixi run bash -e {0}`.
@@ -284,15 +306,15 @@ To this end, `setup-pixi` adds all environment variables set when executing `pix
284
306
As a result, all installed binaries can be accessed without having to call `pixi run`.
285
307
286
308
```yml
287
-
- uses: prefix-dev/setup-pixi@v0.9.0
309
+
- uses: prefix-dev/setup-pixi@v0.9.1
288
310
with:
289
311
activate-environment: true
290
312
```
291
313
292
314
If you are installing multiple environments, you will need to specify the name of the environment that you want to be activated.
293
315
294
316
```yml
295
-
- uses: prefix-dev/setup-pixi@v0.9.0
317
+
- uses: prefix-dev/setup-pixi@v0.9.1
296
318
with:
297
319
environments: >-
298
320
py311
@@ -309,7 +331,7 @@ You can specify whether `setup-pixi` should run `pixi install --frozen` or `pixi
309
331
See the [official documentation](https://prefix.dev/docs/pixi/cli#install) for more information about the `--frozen` and `--locked` flags.
310
332
311
333
```yml
312
-
- uses: prefix-dev/setup-pixi@v0.9.0
334
+
- uses: prefix-dev/setup-pixi@v0.9.1
313
335
with:
314
336
locked: true
315
337
# or
@@ -328,7 +350,7 @@ The first one is the debug logging of the action itself.
328
350
This can be enabled by running the action with the `RUNNER_DEBUG` environment variable set to `true`.
329
351
330
352
```yml
331
-
- uses: prefix-dev/setup-pixi@v0.9.0
353
+
- uses: prefix-dev/setup-pixi@v0.9.1
332
354
env:
333
355
RUNNER_DEBUG: true
334
356
```
@@ -346,7 +368,7 @@ The second type is the debug logging of the pixi executable.
346
368
This can be specified by setting the `log-level` input.
347
369
348
370
```yml
349
-
- uses: prefix-dev/setup-pixi@v0.9.0
371
+
- uses: prefix-dev/setup-pixi@v0.9.1
350
372
with:
351
373
# one of `q`, `default`, `v`, `vv`, or `vvv`.
352
374
log-level: vvv
@@ -372,7 +394,7 @@ If nothing is specified, `post-cleanup` will default to `true`.
372
394
On self-hosted runners, you also might want to alter the default pixi install location to a temporary location. You can use `pixi-bin-path: ${{ runner.temp }}/bin/pixi` to do this.
373
395
374
396
```yml
375
-
- uses: prefix-dev/setup-pixi@v0.9.0
397
+
- uses: prefix-dev/setup-pixi@v0.9.1
376
398
with:
377
399
post-cleanup: true
378
400
# ${{ runner.temp }}\Scripts\pixi.exe on Windows
@@ -388,7 +410,7 @@ You can also use a preinstalled local version of pixi on the runner by not setti
388
410
This can be overwritten by setting the `manifest-path` input argument.
389
411
390
412
```yml
391
-
- uses: prefix-dev/setup-pixi@v0.9.0
413
+
- uses: prefix-dev/setup-pixi@v0.9.1
392
414
with:
393
415
manifest-path: pyproject.toml
394
416
```
@@ -398,7 +420,7 @@ This can be overwritten by setting the `manifest-path` input argument.
398
420
If you only want to install pixi and not install the current project, you can use the `run-install` option.
399
421
400
422
```yml
401
-
- uses: prefix-dev/setup-pixi@v0.9.0
423
+
- uses: prefix-dev/setup-pixi@v0.9.1
402
424
with:
403
425
run-install: false
404
426
```
@@ -409,7 +431,7 @@ You can also download pixi from a custom URL by setting the `pixi-url` input arg
409
431
Optionally, you can combine this with the `pixi-url-headers` input argument to supply additional headers for the download request, such as a bearer token.
0 commit comments