This commit is contained in:
1 parent
053991669b
commit
b236611044
2 files changed
+44
No files matched your search
@@ -258,6 +258,20 @@ python3 agent.py --doctor
|
||||
|
||||
---
|
||||
|
||||
## Tests
|
||||
|
||||
Run the unit tests from the repository root:
|
||||
|
||||
```bash
|
||||
python3 -m unittest discover -s tests -v
|
||||
```
|
||||
|
||||
The tests use Python's standard library and mock external system commands. They do not require CrowdSec, `nftables`, elevated privileges, or additional Python packages.
|
||||
|
||||
[Gitea Actions](.gitea/workflows/ci.yaml) runs the same command with Python 3.12 on an `ubuntu-latest` runner for pushes to any branch, pull requests targeting any branch, and manual runs. Repository Actions must be enabled and a runner with that label must be available.
|
||||
|
||||
---
|
||||
|
||||
## Configuration
|
||||
|
||||
Configuration precedence:
|
||||
|
||||
Reference in new issue
Block a user