Skip to content

docs: record the Dependabot sweep and the ruff 0.16 formatter ratchet… #41

docs: record the Dependabot sweep and the ruff 0.16 formatter ratchet…

docs: record the Dependabot sweep and the ruff 0.16 formatter ratchet… #41

Workflow file for this run

name: CI
on:
push:
branches: [development, validation, production]
pull_request:
branches: [development, validation, production]
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Check out source
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Set up Python
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: "3.12"
cache: pip
- name: Install development dependencies
run: python -m pip install -e ".[dev]"
- name: Check lint
run: ruff check .
- name: Check formatting
run: ruff format --check .
- name: Check types
run: mypy
test:
name: Test (${{ matrix.os }})
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
timeout-minutes: 20
steps:
- name: Check out source
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Set up Python
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: "3.12"
cache: pip
- name: Install development dependencies
run: python -m pip install -e ".[dev]"
- name: Run tests
run: pytest -q
package:
name: Package
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Check out source
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Set up Python
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: "3.12"
cache: pip
- name: Install build tooling
run: python -m pip install "build>=1.2,<2"
- name: Build wheel and source distribution
run: python -m build
dependency-audit:
name: Dependency audit
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Check out source
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Set up Python
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: "3.12"
cache: pip
- name: Install project and auditor
run: python -m pip install . "pip-audit>=2.7"
- name: Audit installed dependencies
run: python -m pip_audit --local