Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 12 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,36 +79,38 @@ There are three "environments" set up for pixi:
- `dev`
- `examples`

And two "tasks":
And three "tasks":

- `lint`
- `test`
- `test` : run most of the tests
- `test_all` : run the tests that access AWS -- i.e. download data directly.

To run the tests in an isolated environment:

```bash
pixi run -e dev test
```

To run a shell to do dev work:

Or with a specific python version:
```bash
pixi shell -e dev
pixi run -e test312 test
```

If you want to run the examples (notebooks and al that):
Options are: `test310` `test311` `test312` `test313`


To run a shell to do dev work:

```bash
pixi shell -e all
pixi shell -e dev
```

That will set up a conda environment with all the develop dependencies.

To run a shell in which you can run the examples:
To run a shell in which you can run the examples (notebooks and al that):

```bash
pixi shell -e examples
```

To run a shell with everything (dev and example deps:

```bash
Expand Down
4 changes: 2 additions & 2 deletions pixi.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ python-build = "*"

[tool.pixi.feature.dev.tasks]
lint = "ruff check tests xarray_subset_grid"
test = "pytest --online tests/"
test = "pytest tests/"
test_all = "pytest --online tests/"
Copy link
Member

@ocefpaf ocefpaf Jun 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can run this once instead of the whole matrix in the CIs. Maybe just Linux and latest supported Python.

Copy link
Contributor Author

@ChrisBarker-NOAA ChrisBarker-NOAA Jun 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you mean the online tests?

That a good idea some day, but it's pretty broken at the moment, so let's keep it off for now.


[tool.pixi.feature.examples.dependencies]
matplotlib = "*"
Expand Down
Loading