File tree Expand file tree Collapse file tree 1 file changed +18
-2
lines changed
Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Original file line number Diff line number Diff line change 5656 - name : Install pixi environment
5757 run : pixi install --locked
5858
59+ - name : Record pixi prefix
60+ run : |
61+ PIXI_PREFIX=$(pixi info --json | python - <<'PY'
62+ import json, sys
63+ data = json.load(sys.stdin)
64+ if "default_environment" in data :
65+ prefix = data["default_environment"].get("prefix", "")
66+ else :
67+ envs = data.get("environments_info") or []
68+ target = next((env for env in envs if env.get("name") == "default"), envs[0] if envs else None)
69+ prefix = target.get("prefix", "") if target else ""
70+ print(prefix)
71+ PY
72+ )
73+ echo "PIXI_PREFIX=${PIXI_PREFIX}" >> "$GITHUB_ENV"
74+
5975 - name : Prework for installing packages using cache
6076 run : |
6177 if command -v sudo && sudo -n true 2>/dev/null; then
@@ -112,11 +128,11 @@ jobs:
112128
113129 - name : Install Python dependencies
114130 run : |
115- pip3 install pytest -U --break-system-packages
131+ pixi run python -m pip install pytest -U
116132
117133 - name : Build
118134 run : |
119- CMAKE_PREFIX_PATH="$HOME/.pixi/envs/default " ./scripts/build_docs.sh build
135+ CMAKE_PREFIX_PATH="$PIXI_PREFIX " ./scripts/build_docs.sh build
120136
121137 - name : Upload documentation artifact
122138 if : ${{ github.ref == 'refs/heads/main' }}
You can’t perform that action at this time.
0 commit comments