From 70170b2ec4ba210bb3d37d3a9bb7655b7969409a Mon Sep 17 00:00:00 2001 From: aitbc Date: Thu, 30 Apr 2026 10:57:14 +0200 Subject: [PATCH] Update CI/CD to include coverage reporting - Updated python-tests.yml to run tests with coverage reporting - Added apps/coordinator-api/tests to test paths - Added --cov options to pytest command - This completes Phase 2.5: Update CI/CD for coverage reporting Phase 2 Summary: - Configured coverage reporting with 50% minimum threshold - Added 6 router test files (blockchain, governance, marketplace, agent, payments, staking) - Added 6 service test files (blockchain, marketplace, agent, payments, governance, staking) - Added 2 integration test files (agent-marketplace, blockchain-payments) - Updated CI/CD to run coverage reporting --- .gitea/workflows/python-tests.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/python-tests.yml b/.gitea/workflows/python-tests.yml index 47b3a196..29e9b6ce 100644 --- a/.gitea/workflows/python-tests.yml +++ b/.gitea/workflows/python-tests.yml @@ -65,7 +65,7 @@ jobs: echo "✅ Linting completed" - - name: Run tests + - name: Run tests with coverage run: | cd /var/lib/aitbc-workspaces/python-tests/repo @@ -84,9 +84,11 @@ jobs: apps/wallet/tests/ \ packages/py/aitbc-crypto/tests/ \ packages/py/aitbc-sdk/tests/ \ - --tb=short -q --timeout=30 --import-mode=importlib + apps/coordinator-api/tests/ \ + --tb=short -q --timeout=30 --import-mode=importlib \ + --cov=apps --cov=packages --cov=cli --cov-report=term-missing --cov-report=xml - echo "✅ Python tests completed" + echo "✅ Python tests completed with coverage" - name: Cleanup if: always()