Updated release management.

This commit is contained in:
Dries Peeters
2025-09-19 09:07:22 +02:00
parent a60aa3df58
commit 2222dd9627
3 changed files with 10 additions and 39 deletions
+1 -31
View File
@@ -10,35 +10,6 @@ env:
PYTHON_VERSION: '3.11'
jobs:
lint-and-format:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}
cache: 'pip'
- name: Install dependencies
run: |
pip install -r requirements.txt
pip install flake8 black isort mypy
- name: Run black (code formatting)
run: black --check --diff app/ migrations/ scripts/
- name: Run isort (import sorting)
run: isort --check-only --diff app/ migrations/ scripts/
- name: Run flake8 (linting)
run: flake8 app/ migrations/ scripts/ --max-line-length=88 --extend-ignore=E203,W503
- name: Run mypy (type checking)
run: mypy app/ --ignore-missing-imports
test-database-migrations:
runs-on: ubuntu-latest
strategy:
@@ -204,7 +175,7 @@ jobs:
create-pr-preview:
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
needs: [lint-and-format, test-database-migrations, test-docker-build]
needs: [test-database-migrations, test-docker-build]
steps:
- name: Comment on PR
uses: actions/github-script@v7
@@ -223,7 +194,6 @@ jobs:
**All checks passed!** ✅
**Completed Checks:**
- ✅ Code formatting and linting
- ✅ Database migration tests (PostgreSQL & SQLite)
- ✅ Docker build and startup test
- ✅ Security vulnerability scan
+6 -6
View File
@@ -11,19 +11,19 @@ alembic==1.13.1
psycopg2-binary==2.9.9
# Web server
gunicorn==21.2.0
eventlet==0.35.2
gunicorn==23.0.0
eventlet==0.37.0
# Utilities
python-dotenv==1.0.0
pytz==2023.3
python-dateutil==2.8.2
Werkzeug==3.0.1
requests==2.31.0
Werkzeug==3.0.6
requests==2.32.4
# PDF Generation
WeasyPrint==60.2
Pillow==10.1.0
Pillow==10.4.0
reportlab==4.0.7
# Background tasks
@@ -36,7 +36,7 @@ Babel==2.14.0
# Development and testing
pytest==7.4.3
pytest-flask==1.3.0
black==23.11.0
black==24.8.0
flake8==6.1.0
# Security
+3 -2
View File
@@ -179,8 +179,9 @@ class VersionManager:
for commit in commits_since.split('\n')[:10]: # Show last 10 commits
if commit.strip():
print(f" {commit}")
if len(commits_since.split('\n')) > 10:
print(f" ... and {len(commits_since.split('\n')) - 10} more")
commit_lines = commits_since.split('\n')
if len(commit_lines) > 10:
print(f" ... and {len(commit_lines) - 10} more")
def show_status(self):
"""Show current version status"""