-
Notifications
You must be signed in to change notification settings - Fork 35
81 lines (76 loc) · 2.26 KB
/
Copy pathbuild.yml
File metadata and controls
81 lines (76 loc) · 2.26 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
name: Run
on:
push:
pull_request:
branches:
- main
schedule:
# At 12:00 UTC on every day-of-month
- cron: "0 12 */1 * *"
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
test:
name: test ${{ matrix.tox_env }}
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
include:
- { "py": "3.14", "tox_env": "py314" }
- { "py": "3.13", "tox_env": "py313" }
- { "py": "3.12", "tox_env": "py312-cov" }
- { "py": "3.12", "tox_env": "py312" }
- { "py": "3.11", "tox_env": "py311" }
- { "py": "3.10", "tox_env": "py310" }
- { "py": "3.9", "tox_env": "py39" }
- { "py": "3.8", "tox_env": "py38" }
steps:
- name: setup python for tox
uses: actions/setup-python@v6
with:
python-version: "3.11"
- name: install tox
run: python -m pip install tox
- uses: actions/checkout@v6
- name: setup python for test ${{ matrix.py }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.py }}-dev
- name: setup test suite ${{ matrix.tox_env }}
run: tox -vv --notest -e ${{ matrix.tox_env }}
- name: run test suite ${{ matrix.tox_env }}
run: tox --skip-pkg-install -e ${{ matrix.tox_env }}
docs:
name: check docs
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v6
- name: setup Python 3.14
uses: actions/setup-python@v6
with:
python-version: "3.14"
- name: install tox
run: python -m pip install tox
- name: install docs dependencies
run: tox -vv --notest -e docs
- name: check docs
run: tox --skip-pkg-install -e docs
lint:
name: lint
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v6
- name: setup Python 3.14
uses: actions/setup-python@v6
with:
python-version: "3.14"
- name: Install prettier
run: npm install -g prettier
- name: install tox
run: python -m pip install tox
- name: install lint dependencies
run: tox -vv --notest -e lint
- name: lint
run: tox --skip-pkg-install -e lint