File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load diff This file was deleted.
Load diff This file was deleted.
Load diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : Release
2+
3+ on :
4+ push :
5+ tags :
6+ - " *.*.*"
7+
8+ permissions :
9+ contents : write
10+ id-token : write
11+
12+ jobs :
13+ build :
14+ runs-on : ubuntu-latest
15+
16+ steps :
17+ - uses : actions/checkout@v5
18+
19+ - uses : actions/setup-python@v6
20+ with :
21+ python-version : " 3.13"
22+
23+ - name : Install uv
24+ uses : astral-sh/setup-uv@v6
25+
26+ - name : Build distributions
27+ run : uv build
28+
29+ - name : Upload build artifacts
30+ uses : actions/upload-artifact@v4
31+ with :
32+ name : python-distributions
33+ path : dist/*
34+
35+
36+ - name : Create GitHub Release
37+ id : release
38+ uses : softprops/action-gh-release@v2
39+ with :
40+ generate_release_notes : true
41+ files : dist/*
42+
43+
44+ publish :
45+ runs-on : ubuntu-latest
46+ needs : build
47+
48+ permissions :
49+ id-token : write
50+
51+ steps :
52+ - uses : actions/download-artifact@v5
53+ with :
54+ name : python-distributions
55+ path : dist
56+
57+ - name : Publish to PyPI
58+ uses : pypa/gh-action-pypi-publish@release/v1
Load diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : Python Test and Lint
2+
3+ on :
4+ push :
5+ branches :
6+ - ' *'
7+ pull_request :
8+ branches :
9+ - main
10+
11+ jobs :
12+ test :
13+ name : Python Test and Lint
14+ runs-on : ubuntu-latest
15+
16+ strategy :
17+ matrix :
18+ python-version :
19+ - ' 3.12'
20+ - ' 3.13'
21+ - ' 3.14'
22+
23+ steps :
24+ - name : Checkout code
25+ uses : actions/checkout@v4
26+
27+ - name : Set up Python ${{ matrix.python-version }}
28+ uses : actions/setup-python@v4
29+ with :
30+ python-version : ${{ matrix.python-version }}
31+
32+ - name : Install UV
33+ run : |
34+ curl -LsSf https://astral.sh/uv/install.sh | sh
35+
36+ - name : Install dependencies
37+ run : uv sync --all-extras # make sure uv, and pip exist for tests
38+ - name : Run ruff
39+ run : uv run ruff check --output-format=github
40+ continue-on-error : true
41+ - name : Run pytest
42+ run : uv run pytest tests -vv
43+
Load diff This file was deleted.
You can’t perform that action at this time.
0 commit comments