Skip to content

Update code coverage report #16

Update code coverage report

Update code coverage report #16

name: Send coverage report
on:
push:
branches:
- main
paths-ignore:
- pyproject.toml
- setup.cfg
- CHANGELOG.md
jobs:
unit-tests-coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python for Poetry
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Install poetry
run: |
python -m pip install -U poetry pip
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
cache: "poetry"
- name: Install dependencies
run: |
poetry install -n
- name: Send coverage report
run: |
poetry run pytest --cov newversion --cov-report=xml
- name: Send coverage report
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}