From f405bdafb9bd5c03ec535f446b56f2cc641aeb43 Mon Sep 17 00:00:00 2001 From: Maciej Pienczyn Date: Mon, 2 Feb 2026 08:00:38 +0100 Subject: [PATCH] fix: Add SECRET_KEY env and pdfplumber dependency for CI - Add SECRET_KEY environment variable to all test steps - Add pdfplumber to requirements.txt (used by krs_audit_service) Co-Authored-By: Claude Opus 4.5 --- .github/workflows/test.yml | 3 +++ requirements.txt | 1 + 2 files changed, 4 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0448bd0..4de8345 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -52,6 +52,7 @@ jobs: pytest tests/unit/ -v --cov=. --cov-report=xml env: TESTING: 'true' + SECRET_KEY: 'test-secret-key-for-ci-cd-minimum-32-chars-long' DATABASE_URL: postgresql://nordabiz_test:testpassword@localhost:5432/nordabiz_test - name: Run integration tests @@ -59,6 +60,7 @@ jobs: pytest tests/integration/ -v --cov=. --cov-report=xml --cov-append env: TESTING: 'true' + SECRET_KEY: 'test-secret-key-for-ci-cd-minimum-32-chars-long' DATABASE_URL: postgresql://nordabiz_test:testpassword@localhost:5432/nordabiz_test - name: Run security tests @@ -66,6 +68,7 @@ jobs: pytest tests/security/ -v env: TESTING: 'true' + SECRET_KEY: 'test-secret-key-for-ci-cd-minimum-32-chars-long' DATABASE_URL: postgresql://nordabiz_test:testpassword@localhost:5432/nordabiz_test - name: Check coverage diff --git a/requirements.txt b/requirements.txt index 3cd75f6..73aee16 100644 --- a/requirements.txt +++ b/requirements.txt @@ -31,6 +31,7 @@ Flask-Mail==0.9.1 requests==2.31.0 feedparser==6.0.10 user-agents>=2.2.0 +pdfplumber>=0.10.0 # SEO Analysis beautifulsoup4==4.12.3