-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (51 loc) · 1.33 KB
/
Copy pathpython-tests.yml
File metadata and controls
61 lines (51 loc) · 1.33 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
name: Python Tests
on:
push:
branches: [ main ]
paths:
- '**/*.py'
- 'pyproject.toml'
- '.github/workflows/python-tests.yml'
pull_request:
branches: [ main ]
paths:
- '**/*.py'
- 'pyproject.toml'
- '.github/workflows/python-tests.yml'
workflow_dispatch:
jobs:
lint-and-format:
runs-on: ubuntu-latest
if: ${{ !contains(github.event.commits[0].message, '[skip ci]') }}
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Set up uv
uses: astral-sh/setup-uv@v7
with:
python-version: '3.11'
- name: Check formatting
run: make fmt-check
- name: Run linter
run: make lint
pytest:
runs-on: ubuntu-latest
needs: lint-and-format
if: ${{ !contains(github.event.commits[0].message, '[skip tests]') }}
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Set up uv
uses: astral-sh/setup-uv@v7
with:
python-version: '3.11'
- name: Validate changelog fragments
run: make changelog-check
- name: Verify curl availability for proxied health checks
run: curl --version
- name: Run tests
run: make test