feat: automatic testing
This commit adds a .gitlab-ci.yml file, which is responsible for defining jobs to be run (in this case only running the test suite) ref: N25B-65
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
We begin by installing UV (very nice utility for managing packages and Python version):
|
||||
|
||||
```bash
|
||||
# On macOS and Linux.
|
||||
# On MacOS and Linux.
|
||||
curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||
```
|
||||
```bash
|
||||
@@ -23,6 +23,13 @@ To run the project (development server), execute the following command (while in
|
||||
uv run fastapi dev src/control_backend/main.py
|
||||
```
|
||||
|
||||
## Testing
|
||||
Testing happens automatically when opening a merge request to any branch. If you want to manually run the test suite, you can do so by running the following:
|
||||
|
||||
```bash
|
||||
uv run --only-group test pytest
|
||||
```
|
||||
|
||||
## GitHooks
|
||||
|
||||
To activate automatic commits/branch name checks run:
|
||||
|
||||
Reference in New Issue
Block a user