-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (57 loc) · 1.42 KB
/
pr.yml
File metadata and controls
65 lines (57 loc) · 1.42 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: PR
on:
pull_request:
types:
- edited
- opened
- synchronize
jobs:
lint-pr-title:
name: Lint PR title
runs-on: ubuntu-latest
steps:
- name: Validate conventional commit format
uses: amannn/action-semantic-pull-request@v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
# Mirrors changelog-sections in release-please-config.json
types: |
feat
fix
infra
ci
docs
deps
perf
refactor
test
chore
qa:
name: Check software quality
runs-on: ubuntu-latest
permissions:
contents: read # Required for actions/checkout
id-token: write # For OIDC authentication, e.g. Codecov
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Set up Python
uses: astral-sh/setup-uv@v7
with:
python-version: "3.14"
enable-cache: true
- name: Validate generated types are up to date
run: |
make generate-code-references-types
git diff --exit-code
- name: Run linters
run: make lint
- name: Run tests
env:
PYTEST_ADDOPTS: --cov --cov-report xml
run: make test
- name: Upload coverage
uses: codecov/codecov-action@v5
with:
use_oidc: true