-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (51 loc) · 1.84 KB
/
test.yml
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
name: Test library and documentation
on: [push, pull_request]
jobs:
test-library:
runs-on: ubuntu-latest
strategy:
matrix:
python:
- { name: "CPython 3.9", version: "3.9", env: "py39" }
- { name: "CPython 3.10", version: "3.10", env: "py310" }
- { name: "CPython 3.11", version: "3.11.0-rc.2", env: "py311" }
- { name: "PyPy 3.9", version: "pypy3.9", env: "pypy39" }
steps:
- uses: actions/checkout@v3
- name: Setup ${{ matrix.python.name }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python.version }}
- name: Install tox
run: pipx install tox
- name: Test with tox
run: tox -e ${{ matrix.python.env }}
test-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install tox
run: pipx install --python python3.10 tox
- name: Generate apidoc
run: tox -e apidocs
- name: Check if repo apidoc is up to date
run: |
git diff --exit-code HEAD
test-deps:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install Poetry
run: pipx install poetry
- name: Check pyproject.toml
run: poetry check
- name: Check if lockfile is updated
run: poetry lock --check