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
This commit is contained in:
aitbc
2026-04-30 10:57:14 +02:00
parent d28aa6d18b
commit 70170b2ec4

View File

@@ -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()