-
Notifications
You must be signed in to change notification settings - Fork 32
51 lines (40 loc) · 1.07 KB
/
ci-build.yml
File metadata and controls
51 lines (40 loc) · 1.07 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
name: CI
on:
push:
branches:
- main
tags:
- 'v*'
pull_request:
env:
PYTHON_BUILD_VERSION: '3.14'
jobs:
build:
name: Build and Test
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Install the latest version of uv
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
- name: Install python
run: uv python install ${{ matrix.python-version }}
- name: Install dependencies
run: uv sync --frozen
- name: Check formatting
run: make check-format
- name: Check linting
run: make check-fix
- name: Run tests
run: make test
- name: Build package
run: uv build
- name: Upload artifacts
if: matrix.python-version == env.PYTHON_BUILD_VERSION
uses: actions/upload-artifact@v7
with:
name: python-package-distributions
path: dist/