Skip to content

chore: fix tool.coverage.run.source #42

chore: fix tool.coverage.run.source

chore: fix tool.coverage.run.source #42

Workflow file for this run

name: Run tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
commitlint:
name: Check commit messages
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Run commitlint
uses: wagoid/commitlint-github-action@3d28780bbf0365e29b144e272b2121204d5be5f3 # v6.1.2
pre-commit:
name: Run pre-commit hooks
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python 3.10
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Run pre-commit
uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
test:
name: Python ${{ matrix.python_version }}
runs-on: ubuntu-latest
env:
TOX_POSARGS: -- --cov=. --cov-report=xml
strategy:
matrix:
python_version: ['3.10', '3.11', '3.12', '3.13', '3.14']
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python_version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python_version }}
cache: 'pip'
cache-dependency-path: 'requirements-test.txt'
- name: Upgrade packaging tools
run: python -m pip install --upgrade pip setuptools wheel
- name: Install dependencies
run: python -m pip install --upgrade codecov tox
- name: Run tox targets for Python ${{ matrix.python_version }}
run: tox run -f py$(echo ${{ matrix.python_version }} | tr -d .) ${{ env.TOX_POSARGS }}
- name: Upload Coverage to Codecov
if: ${{ matrix.python_version == '3.10' }}
uses: codecov/codecov-action@v3