File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2222permissions : {}
2323
2424jobs :
25+ check-lockfile :
26+ runs-on : ubuntu-slim
27+ permissions :
28+ contents : read
29+
30+ steps :
31+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
32+ with :
33+ fetch-depth : 1
34+ persist-credentials : false
35+
36+ - name : Set up pixi
37+ uses :
prefix-dev/[email protected] 38+ with :
39+ pixi-version : v0.66.0
40+ run-install : false
41+
42+ - name : Check that pixi.lock is up to date
43+ run : |
44+ if ! pixi install --locked --manifest-path pyproject.toml; then
45+ echo "::error file=pixi.lock::pixi.lock is not consistent with pyproject.toml. " \
46+ "Run 'pixi lock' locally and commit the updated pixi.lock."
47+ exit 1
48+ fi
49+
2550 pixi-linux-install :
26- runs-on : ubuntu-24.04
51+ needs : check-lockfile
52+ runs-on : ubuntu-slim
2753 permissions :
2854 contents : read
2955
3056 steps :
31- - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
57+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
3258 with :
3359 fetch-depth : 0
3460 persist-credentials : false
@@ -40,15 +66,19 @@ jobs:
4066 locked : true
4167 cache : true
4268 cache-write : ${{ github.event_name == 'push' && github.ref_name == 'main' }}
69+
4370 - name : Show pixi info
4471 run : |
4572 pixi info
4673 pixi list
74+
4775 - name : Clean build artifacts
4876 run : |
4977 rm -rf build meson-logs meson-private .mesonpy-*
78+
5079 - name : Install Matplotlib editable
5180 run : pixi run python -m pip install --config-settings=setup-args="-Db_lto=false" --editable .
81+
5282 - name : Smoke test editable install
5383 run : |
5484 pixi run python -c "import matplotlib; print(matplotlib.__version__)"
Original file line number Diff line number Diff line change @@ -218,15 +218,18 @@ setup.
218218
219219 pixi run python -c "import matplotlib; print(matplotlib.__file__)"
220220
221- Note there are some pixi tasks available as shortcuts::
221+ .. note ::
222+ We provide some pixi tasks as shortcuts for common developent tasks. List the
223+ available tasks via ::
222224
223- pixi task list
225+ pixi task list
224226
225- If you do not want to use ``pixi run `` in front of every command, you can do::
227+ .. tip ::
228+ If you do not want to use ``pixi run `` in front of every command, you can do::
226229
227- pixi shell
230+ pixi shell
228231
229- and continue to use pixi as a python environment.
232+ and continue to use pixi as a python environment.
230233
231234 .. note :: do not edit the ``pyproject.toml`` file and commit to the repository, as this
232235 will affect all developers. If you want to change the dependencies, please open an
You can’t perform that action at this time.
0 commit comments