Fix release action #18
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |