-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (38 loc) · 992 Bytes
/
Copy pathtest.yml
File metadata and controls
41 lines (38 loc) · 992 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
41
name: Test
on:
push:
pull_request:
permissions:
contents: read
jobs:
test:
name: ${{ matrix.os }} / Python ${{ matrix.python }}
runs-on: ${{ matrix.os }}
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
python: '3.8'
- os: ubuntu-latest
python: '3.13'
build: true
- os: macos-latest
python: '3.13'
- os: windows-latest
python: '3.13'
steps:
- uses: actions/checkout@v7.0.1
- uses: actions/setup-python@v7.0.0
with:
python-version: ${{ matrix.python }}
- uses: astral-sh/setup-uv@v9.0.0
with:
enable-cache: true
- run: uv sync --locked --dev
- run: uv run python -m unittest discover -s tests -v
- run: uv run ruff check src tests
- run: uv run ruff format src tests --check --diff
- if: matrix.build
run: uv build