-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (34 loc) · 890 Bytes
/
cd.yml
File metadata and controls
43 lines (34 loc) · 890 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
41
42
43
name: Upload Python Package
on:
release:
types: ["published"]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.13"
- name: Setup uv
uses: astral-sh/setup-uv@v2
with:
enable-cache: true
version: "0.8.13"
- name: Install dependencies
run: |
uv sync
- name: Make sure we didn't forget anything in pre-commit
run: |
uv run pre-commit run --all
- name: Test with pytest
run: |
uv run pytest
- name: Build and publish
env:
UV_PUBLISH_USERNAME: ${{ secrets.PYPI_USERNAME }}
UV_PUBLISH_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
uv build
uv publish dist/*