Description
Add Codecov integration to the release workflow to upload test coverage reports, matching the pattern used in the platform repository.
Requirements
- Run test suite with coverage on new releases
- Upload coverage to Codecov.io
- Use CODECOV_TOKEN from repository secrets
- Flag coverage as "release" for tracking
- Don't fail CI if Codecov upload fails (fail_ci_if_error: false)
Implementation Steps
- Sign up at https://codecov.io
- Add CODECOV_TOKEN to GitHub repository secrets
- Add workflow steps in
.github/workflows/release.yml:
- name: Run tests with coverage
if: steps.check_release.outputs.new_release == 'true'
run: |
echo "🧪 Running tests with coverage..."
pip install -e .
pytest --cov=src/agentready --cov-report=xml --cov-report=term-missing
- name: Upload coverage to Codecov
if: steps.check_release.outputs.new_release == 'true'
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml
flags: release
name: release-coverage
fail_ci_if_error: false
Benefits
- Track coverage trends over releases
- Public coverage badge for README
- Validates test quality
- Matches platform repo pattern
References
Labels
enhancement, deferred
Description
Add Codecov integration to the release workflow to upload test coverage reports, matching the pattern used in the platform repository.
Requirements
Implementation Steps
.github/workflows/release.yml:Benefits
References
Labels
enhancement, deferred