-
Notifications
You must be signed in to change notification settings - Fork 13
57 lines (55 loc) · 1.79 KB
/
checks.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
name: checks.yml
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12", "3.10"]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
sudo apt update && sudo apt upgrade -y
sudo apt-get install libcairo2-dev pdf2svg texlive texlive-science texlive-latex-recommended texlive-latex-extra
python -m pip install --upgrade pip
pip install -U pip wheel
make install.dev install.base install.e install.docs
- name: Format with [[ isort ]]
run: |
# stop the build if there are errors raised by isort
make isort
- name: Format with [[ black ]]
run: |
# stop the build if there are errors raised by black
make black
- name: Lint with [[ flake8 ]]
run: |
# stop the build if there are Python syntax errors or undefined names
make flake
- name: Docstring linting -- type check against function/method signature with [[ darglint ]]
run: |
# stop the build if docstring type-mismatch detected
make darglint
- name: Doctest coverage check with [[ interrogate ]]
run: |
# stop the build if doctest threshold does not meet
make interrogate
- name: Type check with [[ mypy ]]
run: |
# stop the build if there are type errors
make type
- name: Unit test with [[ pytest ]]
run: |
# stop the build if there are type errors
make test
- name: Make sure examples run
run: |
make images
- name: Make sure docs run
run: |
make docsapi