Skip to content

Enqueue background tasks #342

Enqueue background tasks

Enqueue background tasks #342

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Automated tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [
'3.9',
'3.10',
'3.11',
'3.12',
'3.13',
'3.14.0-alpha.3',
'pypy3.9',
'pypy3.10',
]
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'
- uses: pre-commit/action@v3.0.1
- uses: astral-sh/setup-uv@v5
with:
enable-cache: true
- name: Install dependencies
run: |
uv sync --group ci
- name: Test pinned deps with unittest
run: |
uv run coverage erase
uv run coverage run -m unittest discover
- name: Check coverage
run: |
uv run coverage report --show-missing --fail-under=95
- name: Test with dependency matrix
run: |
uv run tox
env:
TOX_GH_MAJOR_MINOR: ${{ matrix.python-version }}
- name: Test build sdist and wheel packages
run: |
uv build