forked from matplotlib/matplotlib
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (41 loc) · 1.34 KB
/
mypy-stubtest.yml
File metadata and controls
47 lines (41 loc) · 1.34 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
---
name: Mypy Stubtest
on: [pull_request]
permissions:
contents: read
jobs:
mypy-stubtest:
name: mypy-stubtest
runs-on: ubuntu-latest
permissions:
checks: write
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
persist-credentials: false
- name: Set up Python 3
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
with:
python-version: '3.11'
- name: Set up reviewdog
uses: reviewdog/action-setup@d8a7baabd7f3e8544ee4dbde3ee41d0011c3a93f # v1.5.0
- name: Install tox
run: python -m pip install tox
- name: Run mypy stubtest
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
set -o pipefail
tox -e stubtest | \
sed -e "s!.tox/stubtest/lib/python3.11/site-packages!lib!g" | \
reviewdog \
-efm '%Eerror: %m' \
-efm '%CStub: in file %f:%l' \
-efm '%CStub: in file %f' \
-efm '%+CRuntime:%.%#' \
-efm '%+CMISSING' \
-efm '%+Cdef %.%#' \
-efm '%+C<%.%#>' \
-efm '%Z' \
-reporter=github-check -tee -name=mypy-stubtest \
-filter-mode=nofilter