CI / tests (Python 3.10) (pull_request) Successful in 15s
CI / tests (Python 3.11) (pull_request) Successful in 14s
CI / tests (Python 3.12) (pull_request) Successful in 16s
CI / tests (Python 3.13) (pull_request) Successful in 15s
CI / lint (pull_request) Successful in 3s
setup-python only ships builds for real Ubuntu releases and failed on the runner's ubuntu-latest image. uv's standalone builds work on any glibc Linux. make test now takes PYTHON=. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
42 lines
1.3 KiB
YAML
42 lines
1.3 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
|
|
jobs:
|
|
test:
|
|
name: tests (Python ${{ matrix.python }})
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
# Ubuntu 22.04, Debian 12, Ubuntu 24.04, Debian 13
|
|
python: ["3.10", "3.11", "3.12", "3.13"]
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
# setup-python only has builds for real Ubuntu releases, and the runner's
|
|
# ubuntu-latest image isn't one. uv's standalone builds run on any glibc Linux.
|
|
- uses: astral-sh/setup-uv@v6
|
|
- name: Install Python ${{ matrix.python }}
|
|
run: |
|
|
uv python install ${{ matrix.python }}
|
|
echo "PYTHON=$(uv python find ${{ matrix.python }})" >> "$GITHUB_ENV"
|
|
- run: $PYTHON --version
|
|
- run: make test PYTHON="$PYTHON"
|
|
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
SHELLCHECK_VERSION: v0.10.0
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Install shellcheck
|
|
run: |
|
|
curl -fsSL "https://github.com/koalaman/shellcheck/releases/download/${SHELLCHECK_VERSION}/shellcheck-${SHELLCHECK_VERSION}.linux.x86_64.tar.xz" \
|
|
| tar -xJ -C /tmp
|
|
echo "/tmp/shellcheck-${SHELLCHECK_VERSION}" >> "$GITHUB_PATH"
|
|
- run: shellcheck --version
|
|
- run: make lint
|