-
-
Notifications
You must be signed in to change notification settings - Fork 36
61 lines (57 loc) · 1.51 KB
/
Copy pathtest.yaml
File metadata and controls
61 lines (57 loc) · 1.51 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
name: Run checks
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
max-parallel: 5
fail-fast: false
matrix:
python-version:
- "3.10"
- "3.11"
- "3.12"
- "3.13"
- "3.14"
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Upgrade pip
run: python -m pip install -U pip
- name: Install dev dependencies
run: python -m pip install --group dev -e .
- name: Run tests
run: pytest -ra -q --cov=multipart --cov-report=term
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v6
with:
python-version: "3.14"
cache: pip
- name: Upgrade pip
run: python -m pip install -U pip
- name: Install docs dependencies
run: python -m pip install --group docs -e .
- name: Build docs
run: sphinx-build -W -b html docs build/docs/html
package:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v6
with:
python-version: "3.14"
cache: pip
- name: Upgrade pip
run: python -m pip install -U pip
- name: Install build dependencies
run: python -m pip install --group dev -e .
- name: Build distributions
run: python -m build .
- name: Check distributions
run: python -m twine check dist/*