-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (37 loc) · 1.01 KB
/
ci-python.yml
File metadata and controls
45 lines (37 loc) · 1.01 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
name: Continuous Integration for Python
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
name: Test main package
strategy:
fail-fast: false
matrix:
python-version:
- "3.12"
- "3.14"
os:
- ubuntu-latest
runs-on: ${{ matrix.os }}
timeout-minutes: 10
permissions:
contents: read
steps:
- name: Check out the code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # https://github.com/actions/checkout/releases/tag/v6.0.2
- name: Setup uv
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # https://github.com/astral-sh/setup-uv/releases/tag/v8.1.0
with:
version: "latest"
python-version: ${{ matrix.python-version }}
- name: Install Python dependencies
run: make setup-ci
- name: Static analysis
run: make static
- name: Run unit tests on codebase
run: make test-unit