senju/.github/workflows/codecov.yml
dependabot[bot] bf4a0f595a
chore(deps): bump codecov/codecov-action from 3 to 5
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 3 to 5.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/codecov/codecov-action/compare/v3...v5)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-31 06:41:12 +00:00

37 lines
870 B
YAML

name: Code Coverage
on:
push:
branches:
- master
- devel
jobs:
test: # Defines a job called "test"
runs-on: ubuntu-latest # The job runs on the latest Ubuntu runner
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Poetry
run: pip install poetry
- name: Install dependencies
run: poetry install
- name: Run tests with coverage
run: poetry run coverage run -m pytest
- name: Generate Coverage Report # Ensure creation of coverage.xml
run: poetry run coverage xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{secrets.CODECOV_TOKEN}}
file: ./coverage.xml