-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (48 loc) · 1.34 KB
/
pull-request.yml
File metadata and controls
60 lines (48 loc) · 1.34 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
name: PR Checks
on:
pull_request:
branches:
- main
- master
types:
- opened
- synchronize
- reopened
- edited
jobs:
pr-code-checks:
name: Code
runs-on: ubuntu-latest
if: github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.action == 'reopened'
steps:
- name: Checkout code
uses: actions/checkout@v5
with:
ref: ${{ github.head_ref || github.ref }}
# Need full history and tags to find the last release.
fetch-depth: 0
fetch-tags: true
# Work around occasional fetch-tags quirks.
- run: git fetch --tags --force
- name: Install Python
uses: actions/setup-python@v5
- name: Install uv
uses: astral-sh/setup-uv@v6.4.3
- name: Setup
run: uv run task setup
- name: Lint
run: uv run task lint
- name: Unit Test
run: uv run task unit-test
- name: Build
run: uv run task build
- name: Integration Test
run: uv run task integration-test-no-build
pr-content-checks:
name: Content
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Validate PR title
run: ./scripts/conventional-commit.sh "${{ github.event.pull_request.title }}"