-
Notifications
You must be signed in to change notification settings - Fork 12
45 lines (37 loc) · 972 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
name: CI
on:
push:
branches:
- "main"
pull_request: {}
defaults:
run:
shell: bash
jobs:
test:
name: Test Python ${{ matrix.python }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
cache: "pip"
cache-dependency-path: setup.py
- name: Install dependencies
run: |
pip install -e .[dev]
- name: Check formatting
run: black --check .
- name: Lint
run: |
flake8 . --extend-exclude .devbox --count --select=E9,F7,F82 --show-source --statistics
flake8 . --extend-exclude .devbox --count --exit-zero --max-complexity=10 --statistics
- name: Type Check
run: mypy
- name: Test
run: python -m pytest