-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (52 loc) · 1.22 KB
/
release.yml
File metadata and controls
65 lines (52 loc) · 1.22 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
57
58
59
60
61
62
63
64
65
name: release
on:
push:
tags:
- "*"
jobs:
checks:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Set up uv
uses: astral-sh/setup-uv@v5
with:
enable-cache: true
- name: Install project dependencies
run: uv sync --frozen
- name: Install tooling
run: |
uv pip install \
ruff \
mypy \
pytest \
pytest-cov \
pip-audit \
pydantic
- name: Ruff format check
run: uv run ruff format --check
- name: Ruff lint
run: uv run ruff check
- name: Mypy
run: uv run mypy src
- name: Pytest
run: uv run pytest
- name: Dependency security audit
run: uv run pip-audit
publish:
needs: checks
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Create GitHub release
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true