Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 4 additions & 11 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,14 @@ jobs:
with:
submodules: true

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: pip
cache-dependency-path: requirements.txt

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
sudo apt-get update
sudo apt-get install -y python3-jinja2 python3-psycopg2 python3-requests

- name: Run agentd unit tests
run: python -m unittest discover -s agentd/tests -t .
run: python3 -m unittest discover -s agentd/tests -t .

- name: Run cronsyl unit tests
working-directory: agentd/cronsyl
run: python -m unittest discover
run: python3 -m unittest discover
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "agentd/cronsyl"]
path = agentd/cronsyl
url = git@github.com:elmeriniemela/cronsyl.git
url = https://github.com/elmeriniemela/cronsyl.git
19 changes: 15 additions & 4 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
# Repository guidelines

## Validate README.md diagram syntax:
- Minimize maintained code and configuration; remove redundancy before adding tooling.
- Keep `ubuntu-install.sh` rerunnable, simple and easy to review.
- Setup scripts must not clean up or migrate files from older repository versions.
- Keep the custom Odoo image and `rclone-mount.service` backup design.
- Monitoring is mandatory: keep Loki, Promtail, and node exporter. Alloy migration is future work.
- Keep destructive LUKS preparation manual; automate safe setup steps.
- Never overwrite existing secrets under `/srv/secure`.

* `mkdir build`
* `awk '/```mermaid/{flag=1;next}/```/{flag=0}flag' README.md > build/diagram.mmd`
* `mmdc -i build/diagram.mmd -o build/diagram.png`
## Validation

```bash
mkdir -p build
awk '/```mermaid/{flag=1;next}/```/{flag=0}flag' README.md > build/diagram.mmd
mmdc -i build/diagram.mmd -o build/diagram.png
```
Loading
Loading