-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (34 loc) · 1.01 KB
/
build-and-upload.yaml
File metadata and controls
36 lines (34 loc) · 1.01 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
---
#
# documentation:
# - https://docs.pypi.org/trusted-publishers/
# - https://github.com/astral-sh/trusted-publishing-examples/blob/main/.github/workflows/release.yml
#
name: publish package on TestPyPI
on:
push:
tags:
- v*
jobs:
build-and-upload:
name: build package and upload to PyPI
runs-on: ubuntu-latest
environment:
name: publish-to-pypi-test
permissions:
contents: read
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Install uv
uses: astral-sh/setup-uv@v7
- name: Build package
run: uv build
# Check that basic features work and we didn't miss to include crucial files
# - name: Smoke test (wheel)
# run: uv run --isolated --no-project --with dist/*.whl tests/smoke_test.py
# - name: Smoke test (source distribution)
# run: uv run --isolated --no-project --with dist/*.tar.gz tests/smoke_test.py
- name: Publish package
run: uv publish