Skip to content

build(deps-dev): bump ruff from 0.15.17 to 0.16.0 in the python-dependencies group #46

build(deps-dev): bump ruff from 0.15.17 to 0.16.0 in the python-dependencies group

build(deps-dev): bump ruff from 0.15.17 to 0.16.0 in the python-dependencies group #46

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
# Cancel superseded runs on the same ref to save CI minutes.
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
name: Lint & type-check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v7
with:
python-version: "3.12"
cache: pip
cache-dependency-path: pyproject.toml
- name: Install
run: python -m pip install -e ".[dev]"
- name: ruff check
run: ruff check --output-format=github .
- name: ruff format
run: ruff format --check .
- name: mypy
run: mypy src
test:
name: Test (py${{ matrix.python-version }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v7
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: pyproject.toml
- name: Install
run: python -m pip install -e ".[dev]"
- name: pytest
run: pytest --cov=senderkit --cov-report=term-missing --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v7
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: py${{ matrix.python-version }}
fail_ci_if_error: false
# Single required status check that gates merges, so branch protection only
# needs to reference one job regardless of how the matrix grows.
ci-ok:
name: CI
if: always()
needs: [lint, test]
runs-on: ubuntu-latest
steps:
- name: Verify all jobs succeeded
if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')
run: exit 1