[pre-commit.ci] pre-commit autoupdate #362
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: Tests | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened, ready_for_review, unlabeled] | |
branches: | |
- master | |
push: | |
branches: | |
- master | |
jobs: | |
tests: | |
name: Run Python Tests | |
runs-on: windows-latest | |
strategy: | |
fail-fast: False | |
matrix: | |
python-version: | |
- "3.10" | |
- "3.11" | |
- "3.12" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Poetry | |
run: pip install poetry | |
- name: Install project dependencies | |
run: poetry install -vvv --no-root | |
- name: Test with pytest | |
run: poetry run python -m pytest --cov --cov-report=term-missing --cov-report=xml | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v4 | |
with: | |
fail_ci_if_error: true | |
token: ${{ secrets.CODECOV_TOKEN }} |