11name : build
22on :
33 push :
4- branches : ["main ", "*.x-line"]
4+ branches : ["dev ", "*.x-line"]
55 tags : ["*"]
66 pull_request :
77
@@ -16,20 +16,16 @@ jobs:
1616 fail-fast : false
1717 matrix :
1818 include :
19- - { name: ' 3.10', python: '3.10' , tox: py310 }
20- - { name: ' 3.14', python: '3.14' , tox: py314 }
19+ - { name: " 3.10" , tox: py310 }
20+ - { name: " 3.14" , tox: py314 }
2121 steps :
2222 - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
2323 with :
2424 persist-credentials : false
25- - uses : actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
26- with :
27- python-version : ${{ matrix.python }}
28- allow-prereleases : true
29- - name : Run test
30- run : |
31- python -m pip install tox
32- python -m tox -e ${{ matrix.tox }}
25+ - uses : astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
26+ with : # zizmor: ignore[cache-poisoning] cache key is lockfile-derived
27+ enable-cache : true
28+ - run : uv run tox -e ${{ matrix.tox }}
3329 - name : Upload coverage
3430 uses : codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6
3531 build :
@@ -39,17 +35,11 @@ jobs:
3935 - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
4036 with :
4137 persist-credentials : false
42- - uses : actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
43- with :
44- python-version : " 3.14"
45- - name : Install pypa/build
46- run : python -m pip install build
47- - name : Build a binary wheel and a source tarball
48- run : python -m build
49- - name : Install twine
50- run : python -m pip install twine
51- - name : Check build
52- run : python -m twine check --strict dist/*
38+ - uses : astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
39+ with : # zizmor: ignore[cache-poisoning] cache key is lockfile-derived
40+ enable-cache : true
41+ - run : uv build
42+ - run : uvx twine check --strict dist/*
5343 - name : Store the distribution packages
5444 uses : actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
5545 with :
@@ -64,11 +54,10 @@ jobs:
6454 - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
6555 with :
6656 persist-credentials : false
67- - uses : actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
68- with :
69- python-version : " 3.14"
70- - run : python -m pip install tox
71- - run : python -m tox -e lint
57+ - uses : astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
58+ with : # zizmor: ignore[cache-poisoning] cache key is lockfile-derived
59+ enable-cache : true
60+ - run : uv run tox -e lint
7261 publish-to-pypi :
7362 name : PyPI release
7463 if : startsWith(github.ref, 'refs/tags/')
0 commit comments