Merge pull request #111 from mirumee/widget-improvement #6
This file contains hidden or 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: Codecov Report Upload | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| env: | |
| PYTHONUNBUFFERED: "1" | |
| FORCE_COLOR: "1" | |
| jobs: | |
| cov-report: | |
| name: Generate and publish coverage report | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout source code | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version-file: pyproject.toml | |
| - name: Install Hatch | |
| uses: pypa/hatch@a3c83ab3d481fbc2dc91dd0088628817488dd1d5 | |
| - name: Run coverage | |
| run: hatch test --cover -i python=3.13 | |
| - name: Generate coverage report | |
| run: hatch run coverage:xml | |
| - name: Publish coverage report to Codecov | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| files: coverage.xml |