-
Notifications
You must be signed in to change notification settings - Fork 73
71 lines (60 loc) · 1.66 KB
/
linter_docs_mypy.yaml
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
name: Run linter, generate docs, run mypy
on:
push:
branches:
- master
- '[45].*.z'
pull_request:
branches:
- master
- '[45].*.z'
jobs:
run-linter:
runs-on: ubuntu-latest
name: Run black to check the code style
steps:
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.12'
- name: Checkout to code
uses: actions/checkout@v4
- name: Install dependencies
run: |
pip install -r requirements-dev.txt
- name: Run black
run: |
black --check --config black.toml .
generate_docs:
runs-on: ubuntu-latest
name: Generate documentation
steps:
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.12'
- name: Checkout to code
uses: actions/checkout@v4
- name: Install dependencies
run: |
pip install -r requirements-dev.txt
- name: Generate documentation
working-directory: docs
run: |
make html SPHINXOPTS="-W --keep-going -b linkcheck"
run-mypy:
runs-on: ubuntu-latest
name: Run mypy to check type annotations
steps:
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.12'
- name: Checkout to code
uses: actions/checkout@v4
- name: Install dependencies
run: |
pip install -r requirements-dev.txt
- name: Run mypy
run: |
mypy --show-error-codes hazelcast