-
Notifications
You must be signed in to change notification settings - Fork 29
62 lines (60 loc) · 1.49 KB
/
main.yml
File metadata and controls
62 lines (60 loc) · 1.49 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
52
53
54
55
56
57
58
59
60
61
62
name: CI
on:
push:
branches: [main]
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
# Fetch history and tags to enable correct versioning
fetch-depth: 0
- uses: hynek/build-and-inspect-python-package@v2
tests:
strategy:
fail-fast: false
matrix:
include:
- name: pytest (3.10)
python: "3.10"
tox: "3.10"
- name: pytest (3.11)
python: "3.11"
tox: "3.11"
- name: pytest (3.12)
python: "3.12"
tox: "3.12"
- name: pytest (3.13)
python: "3.13"
tox: "3.13"
coverage: true
- name: pytest (3.14)
python: "3.14"
tox: "3.14"
- name: mypy
python: "3.13"
tox: mypy
- name: pyright
python: "3.13"
tox: pyright
- name: ruff format
python: "3.13"
tox: ruff-format
- name: ruff check
python: "3.13"
tox: ruff-check
- name: docs
python: "3.13"
tox: docs
name: ${{ matrix.name }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v6
with:
python-version: ${{ matrix.python }}
activate-environment: true
- run: uv pip install tox tox-uv
- run: tox -e ${{ matrix.tox }}