Add CI and Docker workflows for automated testing and deployment
Some checks failed
CI / lint-and-test (push) Failing after 26s

- Introduced a CI workflow in `ci.yml` to automate linting, testing, and security checks using Ruff and Bandit.
- Added a Docker build and release workflow in `docker-build.yml` to automate image building and pushing to the Gitea Container Registry upon version tag pushes.
- Configured steps for checking out code, setting up Python, installing dependencies, and generating release notes.
- Enhanced project automation and deployment processes, improving overall development efficiency.
This commit is contained in:
2026-02-18 13:13:25 +03:00
parent ec58739852
commit 68c4f42a21
2 changed files with 129 additions and 0 deletions

41
.gitea/workflows/ci.yml Normal file
View File

@@ -0,0 +1,41 @@
name: CI
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
jobs:
lint-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: https://gitea.com/actions/checkout@v4
- name: Set up Python 3.12
uses: https://gitea.com/actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies
run: |
pip install -r requirements.txt -r requirements-dev.txt
- name: Install lint and security tools
run: |
pip install ruff bandit
- name: Lint with Ruff
run: |
ruff check src tests
- name: Run tests
env:
PYTHONPATH: src
run: |
pytest tests/ -v
- name: Security check with Bandit
run: |
bandit -r src -ll