-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve documentation for developers
- Loading branch information
Showing
7 changed files
with
82 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# How to build the documentation | ||
|
||
## Old school | ||
|
||
With a development environment and from the `docs` directory: | ||
|
||
```sh | ||
make cleanall | ||
make | ||
``` | ||
|
||
## With `nox` | ||
|
||
With `nox` installed and from the root directory of the repository: | ||
|
||
```sh | ||
# first time (this creates the environment) | ||
nox -s docs | ||
# when the environment has been created | ||
nox -s docs -r --no-install | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# How to run the tests | ||
|
||
## As in the CI with `nox` | ||
|
||
Our tests are run on Github Actions with | ||
|
||
```sh | ||
nox --session tests-cov -- -v --runslow --cov-report=xml | ||
``` | ||
|
||
So the following command can be useful | ||
|
||
```sh | ||
# first time (creation of the environment) | ||
nox -s tests-cov | ||
# after the creation of the environment | ||
nox -s tests-cov -r --no-install | ||
nox -s tests-cov -r --no-install -- -v --runslow | ||
``` | ||
|
||
With the session `tests` instead of `tests-cov`, no coverage report is created. | ||
|
||
## Manually without `nox` | ||
|
||
Of course, if can be very useful to launch some tests manually. With the test or dev | ||
dependencies installed, one can run for example: | ||
|
||
```sh | ||
pytest tests | ||
pytest --runslow tests/test_restart.py | ||
pytest --runslow tests/test_restart.py::test_restart_new_dir_results | ||
pytest -h | grep pdb | ||
pytest tests/test_files.py --pdb --pdbcls=IPython.terminal.debugger:TerminalPdb | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Release checklist for maintainers | ||
# How to release | ||
|
||
## Via GitHub Actions | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters