-
Notifications
You must be signed in to change notification settings - Fork 202
85 lines (80 loc) · 2.48 KB
/
ci-tests.yml
File metadata and controls
85 lines (80 loc) · 2.48 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
name: Build and test
on:
# Only on pushes to main or one of the release branches we build on push
push:
branches:
- main
- "[0-9].[0-9]+-branch"
tags:
- "*"
# Build pull requests
pull_request:
jobs:
test:
strategy:
# See https://github.com/actions/runner-images
matrix:
py:
- "3.10"
- "3.11"
- "3.12"
- "3.13"
- "3.14"
- "pypy-3.10"
os:
- "ubuntu-24.04" # x64
- "windows-2022" # x64
- "macos-15" # arm64
- "macos-15-intel" # x64
include:
- os: "ubuntu-24.04"
pytest-args: "--cov"
- py: "pypy-3.10"
toxenv: "pypy310"
pytest-args: ""
name: "Python: ${{ matrix.py }} on ${{ matrix.os }}"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
- name: Setup uv
uses: astral-sh/setup-uv@v7
with:
python-version: ${{ matrix.py }}
- name: Running tox with specific toxenv
if: ${{ matrix.toxenv != '' }}
env:
TOXENV: ${{ matrix.toxenv }}
run: uvx tox
- name: Running tox for current python version
if: ${{ matrix.toxenv == '' }}
run: uvx tox -e py -- ${{ matrix.pytest-args }}
coverage:
runs-on: ubuntu-24.04
name: Validate coverage
steps:
- uses: actions/checkout@v6
- name: Setup uv
uses: astral-sh/setup-uv@v7
with:
python-version: "3.14"
- run: uvx tox -e py314,coverage
docs:
runs-on: ubuntu-24.04
name: Build the documentation
steps:
- uses: actions/checkout@v6
- name: Setup uv
uses: astral-sh/setup-uv@v7
with:
python-version: "3.14"
- run: uvx tox -e docs
lint:
runs-on: ubuntu-24.04
name: Lint the package
steps:
- uses: actions/checkout@v6
- name: Setup uv
uses: astral-sh/setup-uv@v7
with:
python-version: "3.14"
- run: uvx tox -e lint