Skip to content

Commit d4aa199

Browse files
committed
ci: move code checkers to a separate GH workflow
Signed-off-by: Yann Dirson <[email protected]>
1 parent d48468a commit d4aa199

File tree

2 files changed

+40
-36
lines changed

2 files changed

+40
-36
lines changed

.github/workflows/code-checkers.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Static code checkers
2+
3+
on: [push]
4+
5+
jobs:
6+
mypy:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- name: Set up Python
11+
uses: actions/setup-python@v4
12+
with:
13+
python-version: 3.8
14+
- name: Install dependencies
15+
run: |
16+
python -m pip install --upgrade pip
17+
pip install -r requirements/base.txt
18+
pip install mypy
19+
- name: Create a dummy data.py
20+
run: cp data.py-dist data.py
21+
- name: Check with mypy
22+
run: mypy lib/ tests/
23+
24+
pyright:
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: actions/checkout@v2
28+
- name: Set up Python
29+
uses: actions/setup-python@v4
30+
with:
31+
python-version: 3.8
32+
- name: Install dependencies
33+
run: |
34+
python -m pip install --upgrade pip
35+
pip install -r requirements/base.txt
36+
pip install pyright
37+
- name: Create a dummy data.py
38+
run: cp data.py-dist data.py
39+
- name: Check with pyright
40+
run: pyright lib/ # tests/

.github/workflows/jobs-check.yml

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -19,39 +19,3 @@ jobs:
1919
run: cp data.py-dist data.py
2020
- name: jobs-check
2121
run: ./jobs.py check
22-
23-
mypy:
24-
runs-on: ubuntu-latest
25-
steps:
26-
- uses: actions/checkout@v2
27-
- name: Set up Python
28-
uses: actions/setup-python@v4
29-
with:
30-
python-version: 3.8
31-
- name: Install dependencies
32-
run: |
33-
python -m pip install --upgrade pip
34-
pip install -r requirements/base.txt
35-
pip install mypy
36-
- name: Create a dummy data.py
37-
run: cp data.py-dist data.py
38-
- name: Check with mypy
39-
run: mypy lib/ tests/
40-
41-
pyright:
42-
runs-on: ubuntu-latest
43-
steps:
44-
- uses: actions/checkout@v2
45-
- name: Set up Python
46-
uses: actions/setup-python@v4
47-
with:
48-
python-version: 3.8
49-
- name: Install dependencies
50-
run: |
51-
python -m pip install --upgrade pip
52-
pip install -r requirements/base.txt
53-
pip install pyright
54-
- name: Create a dummy data.py
55-
run: cp data.py-dist data.py
56-
- name: Check with pyright
57-
run: pyright lib/ # tests/

0 commit comments

Comments
 (0)