add test infrastructure and --quiet mode
Some checks failed
CI / Lint & Check (push) Failing after 11s

- stdlib unittest suite: 38 tests for client, commands, output
- fixtures/ with load_fixture() helper and sample data
- -q/--quiet flag: tab-separated output, no headers
- ci: package syntax check, lint, test job
This commit is contained in:
Username
2026-01-18 21:08:20 +01:00
parent 969f0a5207
commit 9b1df32ffe
10 changed files with 598 additions and 8 deletions

View File

@@ -27,8 +27,22 @@ jobs:
- name: Install tools
run: pip install -q ruff
- name: Syntax check
- name: Syntax check (entrypoint)
run: python -m py_compile harbor-ctl.py
- name: Lint
- name: Syntax check (package)
run: |
for f in src/harbor/*.py; do
python -m py_compile "$f"
done
- name: Lint (entrypoint)
run: ruff check harbor-ctl.py
- name: Lint (package)
run: ruff check src/harbor/
- name: Run tests
run: python -m unittest discover -s src/harbor/tests -v
env:
PYTHONPATH: src