5064aec831
CI / lint:ruff (push) Successful in 13s
CI / format:ruff (push) Successful in 15s
CI / typecheck:ty (push) Successful in 17s
CI / vulnerabilities:pip-audit (push) Successful in 16s
CI / test:pytest (push) Successful in 22s
CI / lint:ruff (pull_request) Successful in 15s
CI / format:ruff (pull_request) Successful in 16s
CI / typecheck:ty (pull_request) Successful in 14s
CI / vulnerabilities:pip-audit (pull_request) Successful in 17s
CI / test:pytest (pull_request) Successful in 21s
Run ruff check, ruff format --check, and ty check as separate steps per package (gallery, plotstyle, tests) instead of one combined command, so a failure points at which package broke. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
81 lines
2.1 KiB
YAML
81 lines
2.1 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
jobs:
|
|
lint:
|
|
name: lint:ruff
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: astral-sh/setup-uv@v9.0.0
|
|
with:
|
|
python-version: "3.11"
|
|
enable-cache: true
|
|
- run: uv sync --all-packages
|
|
- name: ruff check gallery
|
|
run: uv run ruff check gallery
|
|
- name: ruff check plotstyle
|
|
run: uv run ruff check plotstyle
|
|
- name: ruff check tests
|
|
run: uv run ruff check tests
|
|
|
|
format:
|
|
name: format:ruff
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: astral-sh/setup-uv@v9.0.0
|
|
with:
|
|
python-version: "3.11"
|
|
enable-cache: true
|
|
- run: uv sync --all-packages
|
|
- name: ruff format check gallery
|
|
run: uv run ruff format --check gallery
|
|
- name: ruff format check plotstyle
|
|
run: uv run ruff format --check plotstyle
|
|
- name: ruff format check tests
|
|
run: uv run ruff format --check tests
|
|
|
|
typecheck:
|
|
name: typecheck:ty
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: astral-sh/setup-uv@v9.0.0
|
|
with:
|
|
python-version: "3.11"
|
|
enable-cache: true
|
|
- run: uv sync --all-packages
|
|
- name: ty check gallery
|
|
run: uv run ty check gallery
|
|
- name: ty check plotstyle
|
|
run: uv run ty check plotstyle
|
|
|
|
vulnerabilities:
|
|
name: vulnerabilities:pip-audit
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: astral-sh/setup-uv@v9.0.0
|
|
with:
|
|
python-version: "3.11"
|
|
enable-cache: true
|
|
- run: uv sync --all-packages
|
|
- run: uv run pip-audit --skip-editable
|
|
|
|
test:
|
|
name: test:pytest
|
|
runs-on: ubuntu-latest
|
|
needs: [lint, format, typecheck, vulnerabilities]
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: astral-sh/setup-uv@v9.0.0
|
|
with:
|
|
python-version: "3.11"
|
|
enable-cache: true
|
|
- run: uv sync --all-packages
|
|
- run: uv run pytest tests/ -v
|