File tree Expand file tree Collapse file tree 1 file changed +14
-45
lines changed Expand file tree Collapse file tree 1 file changed +14
-45
lines changed Original file line number Diff line number Diff line change 44 release :
55 types : [published]
66 workflow_dispatch :
7- concurrency :
8- group : build-${{ github.head_ref }}
9- cancel-in-progress : true
10-
11- defaults :
12- run :
13- shell : bash
14-
15- env :
16- STABLE_PYTHON_VERSION : " 3.11"
17- CIBW_BUILD_FRONTEND : build
18- CIBW_ENVIRONMENT_PASS_LINUX : >
19- HATCH_BUILD_HOOKS_ENABLE
20- CIBW_TEST_COMMAND : >
21- python -c "from pytest_databases.docker import DockerServiceRegistry; registry = DockerServiceRegistry('worker_test'); assert isinstance(registry, DockerServiceRegistry)"
22- CIBW_SKIP : >
23- pp*
247
258jobs :
26- pure-python-wheel-and-sdist :
27- name : Build a pure Python wheel and source distribution
9+ publish-release :
2810 runs-on : ubuntu-latest
29-
11+ permissions :
12+ id-token : write
13+ environment : release
3014 steps :
31- - uses : actions/checkout@v4
32- with :
33- # Fetch all tags
34- fetch-depth : 0
15+ - name : Check out repository
16+ uses : actions/checkout@v4
3517
36- - name : Install build dependencies
37- run : python -m pip install --upgrade build wheel setuptools cython mypy
18+ - name : Install uv
19+ uses : astral-sh/setup-uv@v5
3820
39- - name : Build
40- run : python -m build
21+ - name : Set up Python
22+ run : uv python install 3.12
4123
42- - uses : actions/upload-artifact@v4
43- with :
44- name : artifacts
45- path : dist/*
46- if-no-files-found : error
24+ - name : Install dependencies
25+ run : uv sync --all-extras
4726
48- publish :
49- name : Publish release
50- needs :
51- - pure-python-wheel-and-sdist
52- runs-on : ubuntu-latest
53- permissions :
54- id-token : write
55- steps :
56- - uses : actions/download-artifact@v4
57- with :
58- name : artifacts
59- path : dist
27+ - name : Build package
28+ run : uv build
6029
6130 - name : Publish package distributions to PyPI
6231 uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments