Skip to content

Use absolute imports throughout the package #1318

Use absolute imports throughout the package

Use absolute imports throughout the package #1318

Workflow file for this run

name: CI
on:
push:
branches:
- "master"
- "citest"
pull_request:
branches:
- "*"
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.head.ref || github.ref }}
cancel-in-progress: true
jobs:
build:
name: Build (${{ matrix.python-version }}, ${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest"]
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14", "3.15"]
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 1
- name: Setup uv
uses: astral-sh/setup-uv@v10.2.0
with:
python-version: ${{ matrix.python-version }}
enable-cache: true
cache-dependency-glob: pyproject.toml
# Style checks are independent of the interpreter, so run them on the same single
# leg as the error reporter instead of once per Python version.
- name: Cache pre-commit environments
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11'
uses: actions/cache@v6
with:
path: ~/.cache/pre-commit
key: ${{ runner.os }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
- name: Run pre-commit
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11'
run: uvx pre-commit run --all-files
- name: Install package and test dependencies
run: uv sync --extra dev
# We only want to install this on one run, because otherwise we'll have
# duplicate annotations.
- name: Install error reporter
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11'
run: uv pip install pytest-github-actions-annotate-failures
- name: Run Tests
run: uv run pytest