-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (38 loc) · 1.3 KB
/
pixi.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: pixi
on:
pull_request:
push:
branches:
- main
jobs:
pixi-update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Authenticate gcloud
id: auth
uses: google-github-actions/auth@v2
with:
credentials_json: "${{ secrets.ARTIFACT_REGISTRY_KEY }}"
- name: Setup gcloud
uses: google-github-actions/setup-gcloud@v2
- name: pixi install locked
run: |
# install pixi
curl -fsSL https://pixi.sh/install.sh | bash
export PATH=/home/runner/.pixi/bin:/home/runner/.local/bin:$PATH
source ~/.bashrc
# install pipx and inject gcp backend
pixi global install pipx
pipx install --force keyring==25.3.0
pipx inject keyring \
keyrings.google-artifactregistry-auth \
--index-url \
https://pypi.org/simple \
--force
# ensure all deps across all environments and platforms are solving
pixi --version
pixi clean && pixi clean cache -y
pixi install --locked -e default -v --pypi-keyring-provider subprocess
pixi install --locked -e cpu -v --pypi-keyring-provider subprocess
pixi install --locked -e gpu -v --pypi-keyring-provider subprocess