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.md
+26Lines changed: 26 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,3 +45,29 @@ Preliminary roadmap:
45
45
4. Add supporting helpers, which can import existing MAD-X, Elegant, SXF files.
46
46
4.1. Try to be as feature complete as possible in these importers.
47
47
5. Reuse the reference implementations and implement readers in community codes for beamline modeling (e.g., the [BLAST codes](https://blast.lbl.gov)).
48
+
49
+
50
+
## How to run the tests and examples locally
51
+
52
+
In order to run the tests and examples locally, please follow these steps:
53
+
54
+
1. Create a conda environment from the environment.yml file:
55
+
```bash
56
+
conda env create -f environment.yml
57
+
```
58
+
2. Activate the conda environment:
59
+
```bash
60
+
conda activate pals-python
61
+
```
62
+
Please double check the environment name in the environment.yml file.
63
+
3. Run the tests locally:
64
+
```bash
65
+
pytest tests -v
66
+
```
67
+
The command line option `-v` increases the verbosity of the output.
68
+
You can also use the command line option `-s` to display any test output directly in the console (useful for debugging).
69
+
Please refer to [pytest's documentation](https://docs.pytest.org/en/stable/) for further details on the available command line options.
0 commit comments