44 push
55
66jobs :
7- # run_tests:
8- # name: Style checks and test
9- # runs-on: ubuntu-latest
10- # strategy:
11- # matrix:
12- # python-version: ["3.10", "3.11", "3.12", "3.13"]
13-
14- # steps:
15- # - name: Checkout
16- # uses: actions/checkout@v3
17-
18- # - name: Install uv
19- # uses: astral-sh/setup-uv@v3
20- # with:
21- # enable-cache: true
22- # cache-dependency-glob: uv.lock
23-
24- # - name: Set up Python ${{ matrix.python-version }}
25- # run: uv python install ${{ matrix.python-version }}
26-
27- # - name: Sync environment
28- # run: uv sync --dev
29-
30- # - name: Build
31- # run: uv build
32-
33- # - name: Check
34- # run: uv run poe check
35-
36- # - name: Test
37- # run: uv run poe test
38-
39- build-n-publish :
40- name : Build and publish to PyPI
7+ run_tests :
8+ name : Style checks and test
419 runs-on : ubuntu-latest
10+ strategy :
11+ matrix :
12+ python-version : ["3.10", "3.11", "3.12", "3.13"]
4213
4314 steps :
44- - name : Checkout source
45- uses : actions/checkout@v4
15+ - name : Checkout
16+ uses : actions/checkout@v3
4617
4718 - name : Install uv
4819 uses : astral-sh/setup-uv@v3
4920 with :
5021 enable-cache : true
5122 cache-dependency-glob : uv.lock
5223
53- - name : Set up Python
54- run : uv python install 3.13
24+ - name : Set up Python ${{ matrix.python-version }}
25+ run : uv python install ${{ matrix.python-version }}
5526
56- - name : Set package version
57- run : |
58- # VERSION=$(git describe --tags)
59- VERSION=0.0.0rc202508101
60- uvx --from=toml-cli toml set --toml-path=pyproject.toml project.version $VERSION
61- echo Set package version $VERSION
27+ - name : Sync environment
28+ run : uv sync --dev
6229
6330 - name : Build
6431 run : uv build
6532
66- - name : Publish
67- run : uv publish -t ${{ secrets.PYPI_API_TOKEN }}
33+ - name : Check
34+ run : uv run poe check
35+
36+ - name : Test
37+ run : uv run poe test
0 commit comments