-
-
Notifications
You must be signed in to change notification settings - Fork 91
48 lines (39 loc) · 981 Bytes
/
ci.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
name: ci
on:
push:
paths:
- "**.py"
- .github/workflows/ci.yml
jobs:
ci:
timeout-minutes: 15
continue-on-error: ${{ matrix.experimental }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
os: [ubuntu-latest]
experimental: [true]
include:
- os: windows-latest
python-version: "3.11"
experimental: false
- os: macos-latest
python-version: "3.11"
experimental: false
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- run: pip install .[tests,lint,io]
- name: syntax check
timeout-minutes: 1
if: runner.os == 'Linux'
run: flake8
- name: type annotation check
timeout-minutes: 10
if: runner.os == 'Linux'
run: mypy
- run: pytest
timeout-minutes: 7