11name : Publish datacrunch package
22
33on :
4- workflow_run :
5- workflows : ["Publish verda package"]
6- types :
7- - completed
4+ release :
5+ types : [published]
86
97jobs :
108 deploy :
119 runs-on : ubuntu-24.04
12- if : ${{ github.event.workflow_run.conclusion == 'success' }}
1310
1411 environment :
1512 name : pypi
@@ -19,48 +16,41 @@ jobs:
1916 contents : read
2017
2118 steps :
22- - name : Checkout
23- uses : actions/checkout@v5
19+ - uses : actions/checkout@v5
2420
2521 - name : Install uv
2622 uses : astral-sh/setup-uv@v7
2723 with :
2824 version : " 0.9.11"
2925
26+ - name : Set up Python
27+ run : uv python install
28+
3029 - name : Sync datacrunch version and dependency to verda
31- working-directory : datacrunch_compat
3230 run : |
3331 # read version from top-level project
34- VERSION=$(uv version --short --project .. )
32+ VERSION=$(uv version --short --package verda )
3533 echo "Syncing datacrunch to verda==$VERSION"
3634
37- uv version "$VERSION"
38- uv add "verda==$VERSION"
35+ uv version --package datacrunch "$VERSION"
36+ uv add --package datacrunch "verda==$VERSION"
3937
4038 echo
4139 echo "Resulting pyproject.toml:"
42- cat pyproject.toml
43-
44- - name : Set up Python
45- working-directory : datacrunch_compat
46- run : uv python install
40+ cat datacrunch_compat/pyproject.toml
4741
48- - name : Build
49- working-directory : datacrunch_compat
50- run : uv build
42+ - name : Build all packages
43+ run : uv build --all-packages
5144
52- # check that basic features work and we didn't miss to include crucial files
53- - name : Smoke test (wheel)
54- working-directory : datacrunch_compat
55- run : uv run --isolated --no-project --with dist/*.whl --with "responses==0.25.8" tests/smoke_datacrunch.py
45+ - name : Smoke test datacrunch (wheel)
46+ run : uv run --isolated --no-project --with dist/datacrunch-*.whl --with dist/verda-*.whl --with "responses==0.25.8" datacrunch_compat/tests/smoke_datacrunch.py
5647
57- - name : Smoke test (source distribution)
58- working-directory : datacrunch_compat
59- run : uv run --isolated --no-project --with dist/*.tar.gz --with "responses==0.25.8" tests/smoke_datacrunch.py
48+ - name : Smoke test datacrunch (source distribution)
49+ run : uv run --isolated --no-project --with dist/datacrunch-*.tar.gz --with dist/verda-*.tar.gz --with "responses==0.25.8" datacrunch_compat/tests/smoke_datacrunch.py
6050
61- - name : Publish
62- working-directory : datacrunch_compat
51+ # we don't use Trusted publishing for datacrunch package yet, thus we need secrets
52+ - name : Publish datacrunch
6353 env :
6454 UV_PUBLISH_USERNAME : ${{ secrets.PYPI_USERNAME }}
6555 UV_PUBLISH_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
66- run : uv publish
56+ run : uv publish dist/datacrunch-*
0 commit comments