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
A simple template for creating DES models in Python, within a **reproducible analytical pipeline (RAP)** <br>
10
11
Click on <kbd>Use this template</kbd> to initialise new repository.<br>
@@ -136,6 +137,8 @@ To run tests, ensure environment is active and located in main directory (i.e. p
136
137
pytest
137
138
```
138
139
140
+
The repository contains a GitHub action `tests.yaml` which will automatically run tests with new commits to GitHub. This is continuous integration, helping to catch bugs early and keep the code stable.
141
+
139
142
You can lint the `.py` files by running either of this commands from the terminal:
140
143
141
144
```
@@ -182,6 +185,7 @@ This section describes the purposes of each class in the simulation.
Copy file name to clipboardExpand all lines: docs/nhs_rap.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,7 @@ Meeting all of the above requirements, plus:
44
44
45
45
| Criteria | Completion | Further details |
46
46
| - | - | - |
47
-
| Code is fully [packaged](https://packaging.python.org/en/latest/). | ✅ |
48
-
| Repository automatically runs tests etc. via CI/CD or a different integration/deployment tool e.g. [GitHub Actions](https://docs.github.com/en/actions). |❌|**TODO: Set up tests to run with GitHub actions**|
47
+
| Code is fully [packaged](https://packaging.python.org/en/latest/). | ✅ |`__init__.py` (shows directory should be treated like package) and `pyproject.toml` (specifies package details) |
48
+
| Repository automatically runs tests etc. via CI/CD or a different integration/deployment tool e.g. [GitHub Actions](https://docs.github.com/en/actions). |✅|`.github/workflows/tests.yaml`|
49
49
| Process runs based on event-based triggers (e.g., new data in database) or on a schedule. | N/A | - |
50
50
| Changes to the RAP are clearly signposted. E.g. a changelog in the package, releases etc. (See gov.uk info on [Semantic Versioning](https://github.com/alphagov/govuk-frontend/blob/main/docs/contributing/versioning.md)). | ✅ |`CHANGELOG.md` and GitHub releases |
0 commit comments