Skip to content

refactor: use iterator expression #61

refactor: use iterator expression

refactor: use iterator expression #61

Workflow file for this run

name: "CI: Lint & Test"
on: [push, pull_request]
jobs:
lint:
name: Lint
if: "!(contains(github.event.head_commit.message, '[skip_ci]'))"
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: "[INIT] Checkout repository"
uses: actions/checkout@v4
- name: "[INIT] Install uv"
uses: astral-sh/setup-uv@v5
with:
python-version: "3.10"
enable-cache: true
- name: "[INIT] Install dependencies"
run: uv sync --locked --all-extras --dev
- name: "[EXEC] Lint"
run: uv run poe lint
test-cover:
name: Test & Cover
if: "!(contains(github.event.head_commit.message, '[skip_ci]'))"
runs-on: ${{ matrix.os }}
permissions:
id-token: write
defaults:
run:
shell: bash
strategy:
matrix:
python: ["3.9", "3.10", "3.11", "3.12", "3.13"]
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: "[INIT] Checkout repository"
uses: actions/checkout@v4
- name: "[INIT] Install uv"
uses: astral-sh/setup-uv@v5
with:
python-version: ${{ matrix.python }}
enable-cache: true
- name: "[INIT] Install dependencies"
run: uv sync --locked --all-extras --dev --group test
- name: "[EXEC] Test"
run: uv run poe test-cover
- name: "[EXEC] Upload coverage to Codecov"
uses: codecov/codecov-action@v5
with:
fail_ci_if_error: true
flags: ${{ matrix.os }},py${{ matrix.python }}
use_oidc: true