-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (33 loc) · 932 Bytes
/
build.yml
File metadata and controls
40 lines (33 loc) · 932 Bytes
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
name: Test package
on:
push:
branches:
- main
pull_request:
jobs:
lint-and-test:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
python-version: ['3.10', '3.11', '3.12']
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
uses: astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57 # v8.0.0
with:
version: "0.7.13"
- name: Install dependencies
run: |
uv sync --dev
- name: Lint with ruff
run: |
uv run ruff check .
- name: Run unit tests
run: |
uv run python -m unittest