File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ push :
5+ branches : [main]
6+ pull_request :
7+ branches : [main]
8+
9+ jobs :
10+ test :
11+ runs-on : ubuntu-latest
12+ strategy :
13+ matrix :
14+ python-version : ["3.11", "3.12"]
15+
16+ steps :
17+ - uses : actions/checkout@v4
18+
19+ - name : Install uv
20+ uses : astral-sh/setup-uv@v4
21+
22+ - name : Set up Python ${{ matrix.python-version }}
23+ run : uv python install ${{ matrix.python-version }}
24+
25+ - name : Install dependencies
26+ run : uv sync --all-extras --dev
27+
28+ - name : Lint with ruff
29+ run : uv run ruff check src/ tests/
30+
31+ - name : Format check with ruff
32+ run : uv run ruff format --check src/ tests/
33+
34+ - name : Type check with pyright
35+ run : uv run pyright src/ tests/
36+
37+ - name : Run tests
38+ run : uv run pytest tests/ -v --tb=short
Original file line number Diff line number Diff line change 1+ name : Publish to PyPI
2+
3+ on :
4+ release :
5+ types : [published]
6+
7+ jobs :
8+ publish :
9+ runs-on : ubuntu-latest
10+ environment : release
11+ permissions :
12+ id-token : write # Required for trusted publishing
13+
14+ steps :
15+ - uses : actions/checkout@v4
16+
17+ - name : Install uv
18+ uses : astral-sh/setup-uv@v4
19+
20+ - name : Set up Python
21+ run : uv python install 3.12
22+
23+ - name : Install dependencies
24+ run : uv sync --all-extras --dev
25+
26+ - name : Run tests
27+ run : uv run pytest tests/ -v --tb=short
28+
29+ - name : Build package
30+ run : uv build
31+
32+ - name : Publish to PyPI
33+ uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments