Skip to content

[pre-commit.ci] pre-commit autoupdate #362

[pre-commit.ci] pre-commit autoupdate

[pre-commit.ci] pre-commit autoupdate #362

Workflow file for this run

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 }}