forked from verda-cloud/sdk-python
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (29 loc) · 1012 Bytes
/
Copy pathpublish_verda.yml
File metadata and controls
40 lines (29 loc) · 1012 Bytes
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
name: Publish verda 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: Build verda
run: uv build
- name: Smoke test verda (wheel)
run: uv run --isolated --no-project --with dist/verda-*.whl --with "responses==0.25.8" tests/smoke_verda.py
- name: Smoke test verda (source distribution)
run: uv run --isolated --no-project --with dist/verda-*.tar.gz --with "responses==0.25.8" tests/smoke_verda.py
# we use Trusted publishing for verda package, no keys necessary: https://docs.astral.sh/uv/guides/integration/github/#publishing-to-pypi
- name: Publish verda package
run: uv publish dist/verda-*