-
Notifications
You must be signed in to change notification settings - Fork 49
125 lines (101 loc) · 3.1 KB
/
check.yaml
File metadata and controls
125 lines (101 loc) · 3.1 KB
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
name: Check
on:
- push
- pull_request
jobs:
linter:
name: linter
runs-on: ubuntu-latest
if: ${{ !startsWith(github.ref, 'refs/tags') }}
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.11" # minimum supported lang version
- name: Install dependencies
run: python -m pip install hatch 'click!=8.3.0'
- name: Run
run: hatch run lint:check
mypy:
name: mypy
runs-on: ubuntu-latest
if: ${{ !startsWith(github.ref, 'refs/tags') }}
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.11" # minimum supported lang version
- name: Install dependencies
run: python -m pip install hatch 'click!=8.3.0'
- name: Check MyPy
run: hatch run mypy:check
pkglint:
name: pkglint
runs-on: ubuntu-latest
if: ${{ !startsWith(github.ref, 'refs/tags') }}
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.11" # minimum supported lang version
- name: Install dependencies
run: python -m pip install hatch 'click!=8.3.0'
- name: Run
run: hatch run lint:pkglint
markdownlint:
# https://github.com/marketplace/actions/markdown-lint
name: markdownlint
runs-on: ubuntu-latest
if: ${{ !startsWith(github.ref, 'refs/tags') }}
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: articulate/actions-markdownlint@v1.1.0
with:
config: .markdownlint-config.yaml
# files: 'docs/**/*.md'
# ignore: node_modules
# version: 0.28.1
docs:
name: readthedocs
runs-on: ubuntu-latest
if: ${{ !startsWith(github.ref, 'refs/tags') }}
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.11" # minimum supported lang version
- name: Install dependencies
run: python -m pip install hatch 'click!=8.3.0'
- name: Run
run: hatch run docs:build
super-linter:
name: super-linter
runs-on: ubuntu-latest
if: ${{ !startsWith(github.ref, 'refs/tags') }}
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Super-Linter
uses: super-linter/super-linter@v8.3.0 # x-release-please-version
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# To reuse the same Super-linter configuration that you use in the
# lint job without duplicating it, see
# https://github.com/super-linter/super-linter/blob/main/docs/run-linter-locally.md#share-environment-variables-between-environments
VALIDATE_ALL_CODEBASE: false
VALIDATE_MARKDOWN: true