Add flag to codecov upload #6
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: Polite Unit Tests | |
on: | |
push: | |
branches: [ next ] | |
pull_request: | |
branches: [ next ] | |
defaults: | |
run: | |
working-directory: packages/polite | |
jobs: | |
pytest: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [windows-latest, ubuntu-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: 3.13 | |
- name: Install poetry | |
uses: abatilo/actions-poetry@v2 | |
- name: Install package | |
run: | | |
poetry install --with test | |
- name: Run tests | |
run: | | |
poetry run pytest --cov --cov-report=xml tests | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v5 | |
with: | |
flags: polite |