You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README-dev.md
+16-8Lines changed: 16 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,24 +18,32 @@ Use conda to set up the Python environment:
18
18
19
19
Solving the environment may take several minutes (but should ultimately work).
20
20
21
-
NOTE: versions are mostly unpinned in the environment specification, because this facilitates conda dependency resolution. Also, sensAI is intended to be compatible with *all* (newer) versions of the dependencies. If it isn't, we need to specify an upper version bound in `setup.py` (where it matters the most) as well as in `environment.yml`. Compatibility with old (pinned) versions and the latest versions is tested in the tox build (see below).
21
+
NOTE: versions are mostly unpinned in the environment specification, because this facilitates conda dependency resolution.
22
+
Also, sensAI is intended to be compatible with *all* (newer) versions of the dependencies.
23
+
If it isn't, we need to specify an upper version bound in `setup.py` (where it matters the most) as well as in `environment.yml`.
24
+
Compatibility with old (pinned) versions and the latest versions is tested in the GitHub build (see below).
22
25
23
26
# Build and Test Pipeline
24
27
25
-
The tests and docs build are executed via **tox** in several environments:
26
-
* `py`: the "regular" test environment, where we test against the pinned dependencies (by explicitly including `requirements.txt` with the pinned versions; this is also the environment in which we test the execution of notebooks
27
-
* `py_latest_dependencies`: the environment where we use the latest versions of all dependencies (except where we have identified an incompatibility; see `setup.py` definitions `DEPS_VERSION_LOWER_BOUND` and `DEPS_VERSION_UPPER_BOUND_EXCLUSIVE`); by not including `requirements.txt`, we depend on the latest admissible versions according to `setup.py`
28
-
* `docs`: the environment in which docs are built via sphinx
28
+
The tests and docs build are executed in several environments:
29
+
* `py_pinned_dependencies`: the "regular" test environment, where we test against the pinned dependencies
30
+
(by explicitly including `requirements.txt` with the pinned versions; this is also the environment in which we test the
31
+
execution of notebooks
32
+
* `py_latest_dependencies`: the environment where we use the latest versions of all dependencies (except where we have
33
+
identified an incompatibility; see `setup.py` definitions `DEPS_VERSION_LOWER_BOUND` and `DEPS_VERSION_UPPER_BOUND_EXCLUSIVE`);
34
+
by not including `requirements.txt`, we depend on the latest admissible versions according to `setup.py`
35
+
* `py_backwardscompa`: a special environment with old versions of some critical dependences where we can test backwards compatibility
36
+
with persisted models of very old sensAI versions (that used older versions of the dependencies, e.g. sklearn)
29
37
30
38
## Automated Tests
31
39
32
-
The tests can be locally run without tox via
40
+
The tests can be locally via
33
41
34
42
sh run_pytest_tests.sh
35
43
36
44
## Docs Build
37
45
38
-
Docs are automatically created during the GitHub build via tox.
46
+
Docs are automatically created during the GitHub build.
39
47
40
48
All .rst files are auto-generated (by `build_scripts/update_docs.py`), with the exception of the root index file `index.rst`.
41
49
@@ -56,7 +64,7 @@ For changes in notebooks to be reflected in the docs build, the test needs to be
0 commit comments