Compare commits

..

3 Commits

Author SHA1 Message Date
e49bcf6ba6 test: update deploy version expectation
All checks were successful
CI / test (pull_request) Successful in 9m13s
CI / deploy (pull_request) Has been skipped
2026-09-17 12:05:55 +03:00
4cf6cba77c fix: run backup installer through sh
Some checks failed
CI / test (pull_request) Failing after 4m45s
CI / deploy (pull_request) Has been skipped
2026-09-17 12:04:16 +03:00
9fc7de113a Merge pull request 'fix: ограничить PostgreSQL backup одним еженедельным dump' (#51) from fix/backup-retention into main
Some checks failed
CI / test (push) Successful in 9m14s
CI / deploy (push) Failing after 10s
Reviewed-on: #51
2026-09-17 07:09:23 +00:00
5 changed files with 10 additions and 6 deletions

View File

@@ -86,7 +86,7 @@ jobs:
-v "$release:/src/release.tar:ro" \
-v "$PROD_PATH":/dst \
alpine:3.20 sh -c 'tar -xf /src/release.tar -C /dst'
/srv/miem_workers/infra/install-postgres-backup-cron.sh
sh /srv/miem_workers/infra/install-postgres-backup-cron.sh
docker compose up -d --build
runtime_version="$(docker compose exec -T api python -c 'from app.version import BACKEND_VERSION; print(BACKEND_VERSION)')"
test "$runtime_version" = "$EXPECTED_BACKEND_VERSION"

View File

@@ -1,5 +1,9 @@
# Changelog
## 0.8.15
- Исправлен production deploy: cron installer запускается через `sh` и не требует executable-бита.
## 0.8.14
- Production CD больше не создаёт backup при каждом deploy; еженедельная задача

View File

@@ -1,3 +1,3 @@
APP_VERSION = "0.8.14"
FRONTEND_VERSION = "0.8.14"
BACKEND_VERSION = "0.8.14"
APP_VERSION = "0.8.15"
FRONTEND_VERSION = "0.8.15"
BACKEND_VERSION = "0.8.15"

View File

@@ -1,6 +1,6 @@
[project]
name = "miem-workers"
version = "0.8.14"
version = "0.8.15"
description = "MIEM employees parser, admin API, and web admin"
requires-python = ">=3.11"
dependencies = [

View File

@@ -18,7 +18,7 @@ def test_health_returns_versions():
response = TestClient(app).get("/api/health")
assert response.status_code == 200
assert response.json()["backend_version"] == "0.8.14"
assert response.json()["backend_version"] == "0.8.15"
def test_api_employees_and_stats_require_admin_session():