-
Notifications
You must be signed in to change notification settings - Fork 12
56 lines (42 loc) · 1.65 KB
/
publish_datacrunch.yml
File metadata and controls
56 lines (42 loc) · 1.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Publish datacrunch package
on:
release:
types: [published]
jobs:
deploy:
runs-on: ubuntu-24.04
environment:
name: pypi
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v5
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
version: "0.9.11"
- name: Set up Python
run: uv python install
- name: Sync datacrunch version and dependency to verda
run: |
# read version from top-level project
VERSION=$(uv version --short --package verda)
echo "Syncing datacrunch to verda==$VERSION"
uv version --package datacrunch "$VERSION"
uv add --package datacrunch "verda==$VERSION"
echo
echo "Resulting pyproject.toml:"
cat datacrunch_compat/pyproject.toml
- name: Build all packages
run: uv build --all-packages
- name: Smoke test datacrunch (wheel)
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
- name: Smoke test datacrunch (source distribution)
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
# we don't use Trusted publishing for datacrunch package yet, thus we need secrets
- name: Publish datacrunch
env:
UV_PUBLISH_USERNAME: ${{ secrets.PYPI_USERNAME }}
UV_PUBLISH_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: uv publish dist/datacrunch-*