-
Notifications
You must be signed in to change notification settings - Fork 150
43 lines (33 loc) · 1 KB
/
python.yml
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: Python Checks
on: pull_request
jobs:
python-checks:
runs-on: ubuntu-latest
env:
PATH: ${{ github.workspace }}/go/bin:${{ github.workspace }}/.cargo/bin:${{ github.workspace }}/.local/share/pnpm:${{ github.workspace }}/.local/bin:/usr/local/bin:/usr/bin:/bin
strategy:
matrix:
python-version:
- "3.12"
defaults:
run:
working-directory: py
steps:
- uses: actions/checkout@v4
- name: Pre-requisites
run: bin/setup -a ci
- name: Install uv and setup Python version
uses: astral-sh/setup-uv@v5
with:
enable-cache: true
python-version: ${{ matrix.python-version }}
- name: Format check
run: uv run ruff format --check .
- name: Lint with ruff
run: uv run ruff check .
- name: Run tests
run: ./bin/run_tests
- name: Build documentation
run: uv run mkdocs build --strict
- name: Build distributions
run: ./bin/build_dists