Skip to content

Commit ac133c7

Browse files
committed
Add tip on pixi shell
1 parent 5f7ab36 commit ac133c7

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

docs/community/contributing.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,15 @@ See below for more Pixi commands relevant to development.
119119

120120
Parcels supports testing against different environments (e.g., different Python versions) with different feature sets. In CI we test against these environments, and you can too locally. For example:
121121

122-
- ``pixi run -e test-py311 tests`` - Run tests using Python 3.11
123-
- ``pixi run -e test-py312 tests`` - Run tests using Python 3.12
122+
- ``pixi run -e test-py311 tests`` - Run tests in the environment containing Python 3.11
123+
- ``pixi run -e test-py312 tests`` - Run tests in the environment containing Python 3.12
124124

125125
The name of the workflow on GitHub contains the command you have to run locally to recreate the workflow - making it super easy to reproduce CI failures locally.
126126

127+
.. tip::
128+
129+
For those familiar with Conda, you are used to activating an environment. With Pixi, you can do the same by doing ``pixi shell <env-name>``. For example, ``pixi shell test-latest`` will drop you into a shell where you can run commands such as ``pytest`` like normal. You can exit the shell with ``exit`` or ``Ctrl+D``.
130+
127131

128132
Changing code
129133
~~~~~~~~~~~~~

0 commit comments

Comments
 (0)