feat: pyproject-based packaging, unified CI and Docker e2e tests

- migrate to pyproject.toml and pip installation
- introduce cleanback CLI entrypoint
- add unit and Docker-based end-to-end tests
- unify GitHub Actions CI and stable tagging
- remove legacy tests.yml and pkgmgr requirements

https://chatgpt.com/share/69517d20-f850-800f-b6ff-6b983247888f
This commit is contained in:
2025-12-28 19:55:15 +01:00
parent 42da78f3a8
commit 5e768d9824
12 changed files with 353 additions and 92 deletions

View File

@@ -1,18 +1,17 @@
# Makefile for Cleanup Failed Backups
.PHONY: test install help
.PHONY: install help test test-unit test-e2e
help:
@echo "Available targets:"
@echo " make test - Run unit tests"
@echo " make install - Show installation instructions"
test:
test: test-unit test-e2e
test-unit:
@echo ">> Running tests"
@python3 -m unittest -v test.py
@python3 -m unittest -v tests/unit/test_main.py
install:
@echo ">> Installation instructions:"
@echo " This software can be installed with pkgmgr:"
@echo " pkgmgr install cleanback"
@echo " See project: https://github.com/kevinveenbirkenbach/package-manager"
test-e2e:
docker build -f tests/e2e/Dockerfile.e2e -t cleanback-e2e .
docker run --rm cleanback-e2e