Skip to content

Commit 82d477f

Browse files
authored
feat: Switch order of pixi info and pixi install (#234)
1 parent a976380 commit 82d477f

File tree

12 files changed

+35
-35
lines changed

12 files changed

+35
-35
lines changed

README.md

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ GitHub Action to set up the [pixi](https://github.com/prefix-dev/pixi) package m
2323
## Usage
2424

2525
```yml
26-
- uses: prefix-dev/setup-pixi@v0.9.2
26+
- uses: prefix-dev/setup-pixi@v0.9.3
2727
with:
28-
pixi-version: v0.55.0
28+
pixi-version: v0.59.0
2929

3030
cache: true
3131
auth-host: prefix.dev
@@ -35,7 +35,7 @@ GitHub Action to set up the [pixi](https://github.com/prefix-dev/pixi) package m
3535
3636
> [!WARNING]
3737
> 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.2`) to avoid breaking changes.
38+
> Please pin the versions of this action to a specific version (i.e., `prefix-dev/setup-pixi@v0.9.3`) to avoid breaking changes.
3939
> 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).
4040
>
4141
> Put the following in your `.github/dependabot.yml` file to enable Dependabot for your GitHub Actions:
@@ -77,7 +77,7 @@ In order to not exceed the [10 GB cache size limit](https://docs.github.com/en/a
7777
This can be done by setting the `cache-write` argument.
7878

7979
```yml
80-
- uses: prefix-dev/setup-pixi@v0.9.2
80+
- uses: prefix-dev/setup-pixi@v0.9.3
8181
with:
8282
cache: true
8383
cache-write: ${{ github.event_name == 'push' && github.ref_name == 'main' }}
@@ -122,7 +122,7 @@ test:
122122
environment: [py311, py312]
123123
steps:
124124
- uses: actions/checkout@v4
125-
- uses: prefix-dev/setup-pixi@v0.9.2
125+
- uses: prefix-dev/setup-pixi@v0.9.3
126126
with:
127127
environments: ${{ matrix.environment }}
128128
```
@@ -132,7 +132,7 @@ test:
132132
The following example will install both the `py311` and the `py312` environment on the runner.
133133

134134
```yml
135-
- uses: prefix-dev/setup-pixi@v0.9.2
135+
- uses: prefix-dev/setup-pixi@v0.9.3
136136
with:
137137
# separated by spaces
138138
environments: >-
@@ -155,7 +155,7 @@ For instance, the `keyring`, or `gcloud` executables. The following example show
155155
By default, global environments are not cached. You can enable caching by setting the `global-cache` input to `true`.
156156

157157
```yml
158-
- uses: prefix-dev/setup-pixi@v0.9.2
158+
- uses: prefix-dev/setup-pixi@v0.9.3
159159
with:
160160
global-environments: |
161161
google-cloud-sdk
@@ -188,7 +188,7 @@ Specify the token using the `auth-token` input argument.
188188
This form of authentication (bearer token in the request headers) is mainly used at [prefix.dev](https://prefix.dev).
189189

190190
```yml
191-
- uses: prefix-dev/setup-pixi@v0.9.2
191+
- uses: prefix-dev/setup-pixi@v0.9.3
192192
with:
193193
auth-host: prefix.dev
194194
auth-token: ${{ secrets.PREFIX_DEV_TOKEN }}
@@ -200,7 +200,7 @@ Specify the username and password using the `auth-username` and `auth-password`
200200
This form of authentication (HTTP Basic Auth) is used in some enterprise environments with [artifactory](https://jfrog.com/artifactory) for example.
201201

202202
```yml
203-
- uses: prefix-dev/setup-pixi@v0.9.2
203+
- uses: prefix-dev/setup-pixi@v0.9.3
204204
with:
205205
auth-host: custom-artifactory.com
206206
auth-username: ${{ secrets.PIXI_USERNAME }}
@@ -213,7 +213,7 @@ Specify the conda-token using the `auth-conda-token` input argument.
213213
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).
214214

215215
```yml
216-
- uses: prefix-dev/setup-pixi@v0.9.2
216+
- uses: prefix-dev/setup-pixi@v0.9.3
217217
with:
218218
auth-host: anaconda.org # or my-quetz-instance.com
219219
auth-conda-token: ${{ secrets.CONDA_TOKEN }}
@@ -225,7 +225,7 @@ Specify the S3 key pair using the `auth-access-key-id` and `auth-secret-access-k
225225
You can also specify the session token using the `auth-session-token` input argument.
226226

227227
```yaml
228-
- uses: prefix-dev/setup-pixi@v0.9.2
228+
- uses: prefix-dev/setup-pixi@v0.9.3
229229
with:
230230
auth-host: s3://my-s3-bucket
231231
auth-s3-access-key-id: ${{ secrets.ACCESS_KEY_ID }}
@@ -241,7 +241,7 @@ See the [pixi documentation](https://pixi.sh/latest/advanced/s3) for more inform
241241
You can specify whether to use keyring to look up credentials for PyPI.
242242

243243
```yml
244-
- uses: prefix-dev/setup-pixi@v0.9.2
244+
- uses: prefix-dev/setup-pixi@v0.9.3
245245
with:
246246
pypi-keyring-provider: subprocess # one of 'subprocess', 'disabled'
247247
```
@@ -309,15 +309,15 @@ To this end, `setup-pixi` adds all environment variables set when executing `pix
309309
As a result, all installed binaries can be accessed without having to call `pixi run`.
310310

311311
```yml
312-
- uses: prefix-dev/setup-pixi@v0.9.2
312+
- uses: prefix-dev/setup-pixi@v0.9.3
313313
with:
314314
activate-environment: true
315315
```
316316

317317
If you are installing multiple environments, you will need to specify the name of the environment that you want to be activated.
318318

319319
```yml
320-
- uses: prefix-dev/setup-pixi@v0.9.2
320+
- uses: prefix-dev/setup-pixi@v0.9.3
321321
with:
322322
environments: >-
323323
py311
@@ -334,7 +334,7 @@ You can specify whether `setup-pixi` should run `pixi install --frozen` or `pixi
334334
See the [official documentation](https://pixi.sh/latest/reference/cli/pixi/install/#update-options) for more information about the `--frozen` and `--locked` flags.
335335

336336
```yml
337-
- uses: prefix-dev/setup-pixi@v0.9.2
337+
- uses: prefix-dev/setup-pixi@v0.9.3
338338
with:
339339
locked: true
340340
# or
@@ -353,7 +353,7 @@ The first one is the debug logging of the action itself.
353353
This can be enabled by running the action with the `RUNNER_DEBUG` environment variable set to `true`.
354354

355355
```yml
356-
- uses: prefix-dev/setup-pixi@v0.9.2
356+
- uses: prefix-dev/setup-pixi@v0.9.3
357357
env:
358358
RUNNER_DEBUG: true
359359
```
@@ -371,7 +371,7 @@ The second type is the debug logging of the pixi executable.
371371
This can be specified by setting the `log-level` input.
372372

373373
```yml
374-
- uses: prefix-dev/setup-pixi@v0.9.2
374+
- uses: prefix-dev/setup-pixi@v0.9.3
375375
with:
376376
# one of `q`, `default`, `v`, `vv`, or `vvv`.
377377
log-level: vvv
@@ -397,7 +397,7 @@ If nothing is specified, `post-cleanup` will default to `true`.
397397
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.
398398

399399
```yml
400-
- uses: prefix-dev/setup-pixi@v0.9.2
400+
- uses: prefix-dev/setup-pixi@v0.9.3
401401
with:
402402
post-cleanup: true
403403
# ${{ runner.temp }}\Scripts\pixi.exe on Windows
@@ -413,7 +413,7 @@ You can also use a preinstalled local version of pixi on the runner by not setti
413413
This can be overwritten by setting the `manifest-path` input argument.
414414

415415
```yml
416-
- uses: prefix-dev/setup-pixi@v0.9.2
416+
- uses: prefix-dev/setup-pixi@v0.9.3
417417
with:
418418
manifest-path: pyproject.toml
419419
```
@@ -423,7 +423,7 @@ This can be overwritten by setting the `manifest-path` input argument.
423423
If you only want to install pixi and not install the current project, you can use the `run-install` option.
424424

425425
```yml
426-
- uses: prefix-dev/setup-pixi@v0.9.2
426+
- uses: prefix-dev/setup-pixi@v0.9.3
427427
with:
428428
run-install: false
429429
```
@@ -434,7 +434,7 @@ You can also download pixi from a custom URL by setting the `pixi-url` input arg
434434
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.
435435

436436
```yml
437-
- uses: prefix-dev/setup-pixi@v0.9.2
437+
- uses: prefix-dev/setup-pixi@v0.9.3
438438
with:
439439
pixi-url: https://pixi-mirror.example.com/releases/download/v0.48.0/pixi-x86_64-unknown-linux-musl
440440
pixi-url-headers: '{"Authorization": "Bearer ${{ secrets.PIXI_MIRROR_BEARER_TOKEN }}"}'
@@ -450,7 +450,7 @@ It will be rendered with the following variables:
450450
By default, `pixi-url` is equivalent to the following template:
451451

452452
```yml
453-
- uses: prefix-dev/setup-pixi@v0.9.2
453+
- uses: prefix-dev/setup-pixi@v0.9.3
454454
with:
455455
pixi-url: |
456456
{{#if latest~}}

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "setup-pixi",
3-
"version": "0.9.2",
3+
"version": "0.9.3",
44
"private": true,
55
"description": "Action to set up the pixi package manager.",
66
"scripts": {

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,8 @@ const run = async () => {
157157
addPixiToPath()
158158
await pixiLogin()
159159
await pixiGlobalInstall()
160-
await pixiInstall()
161160
await generateInfo()
161+
await pixiInstall()
162162
await generateList()
163163
if (options.activatedEnvironment) {
164164
await activateEnv(options.activatedEnvironment)

test/auth-s3/pixi.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
[project]
1+
[workspace]
22
name = "test-auth-s3"
33
channels = ["s3://rattler-s3-testing/channel", "conda-forge"]
44
platforms = ["osx-arm64", "osx-64", "linux-64", "linux-aarch64", "win-64"]
55

6-
[project.s3-options.rattler-s3-testing]
6+
[workspace.s3-options.rattler-s3-testing]
77
endpoint-url = "https://e1a7cde76f1780ec06bac859036dbaf7.eu.r2.cloudflarestorage.com"
88
force-path-style = true
99
region = "auto"

test/auth/pixi.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[project]
1+
[workspace]
22
name = "test-auth"
33
channels = ["conda-forge", "https://repo.prefix.dev/setup-pixi-test"]
44
platforms = ["osx-arm64", "osx-64", "linux-64", "linux-aarch64", "win-64"]

test/bzip2/pixi.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[project]
1+
[workspace]
22
name = "test-win-arm64"
33
channels = ["conda-forge"]
44
platforms = [

test/default/pixi.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[project]
1+
[workspace]
22
name = "test-default"
33
channels = ["conda-forge"]
44
platforms = ["linux-64", "linux-aarch64", "osx-64", "osx-arm64", "win-64"]

test/lockfile-not-up-to-date/pixi.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[project]
1+
[workspace]
22
name = "test-default"
33
version = "0.1.0"
44
description = "Add a short description here"

test/multiple-environments/pixi.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[project]
1+
[workspace]
22
name = "test-package"
33
channels = ["conda-forge"]
44
platforms = ["linux-64", "osx-arm64", "osx-64", "win-64"]

0 commit comments

Comments
 (0)