8000 Merge pull request #25586 from QuLogic/reviewdog-mypy-stubtest · matplotlib/matplotlib@eb3fa7e · GitHub
[go: up one dir, main page]

Skip to content

Commit eb3fa7e

Browse files
authored
Merge pull request #25586 from QuLogic/reviewdog-mypy-stubtest
Post stubtest results to GitHub checks
2 parents 0e7f29e + 2d05200 commit eb3fa7e

File tree

1 file changed

+29
-5
lines changed

1 file changed

+29
-5
lines changed

.github/workflows/mypy-stubtest.yml

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,35 @@ jobs:
2020

2121
- name: Install mypy
2222
run: |
23-
pip3 install -r requirements/testing/mypy.txt -r requirements/testing/all.txt
24-
pip3 install .
23+
pip3 install -r requirements/testing/mypy.txt \
24+
-r requirements/testing/all.txt
25+
pip3 install -e .
26+
27+
- name: Set up reviewdog
28+
run: |
29+
mkdir -p "$HOME/bin"
30+
curl -sfL \
31+
https://github.com/reviewdog/reviewdog/raw/master/install.sh | \
32+
sh -s -- -b "$HOME/bin"
33+
echo "$HOME/bin" >> $GITHUB_PATH
2534
2635
- name: Run mypy stubtest
36+
env:
37+
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2738
run: |
28-
# the ignore missing imports can be removed when typed cycler is released and used
29-
MPLBACKEND=agg python -m mypy.stubtest matplotlib --mypy-config-file pyproject.toml \
30-
--allowlist ci/mypy-stubtest-allowlist.txt
39+
set -o pipefail
40+
MPLBACKEND=agg python -m mypy.stubtest \
41+
--mypy-config-file pyproject.toml \
42+
--allowlist ci/mypy-stubtest-allowlist.txt \
43+
matplotlib | \
44+
reviewdog \
45+
-efm '%Eerror: %m' \
46+
-efm '%CStub: in file %f:%l' \
47+
-efm '%CStub: in file %f' \
48+
-efm '%+CRuntime:%.%#' \
49+
-efm '%+CMISSING' \
50+
-efm '%+Cdef %.%#' \
51+
-efm '%+C<%.%#>' \
52+
-efm '%Z' \
53+
-reporter=github-check -tee -name=mypy-stubtest \
54+
-filter-mode=nofilter

0 commit comments

Comments
 (0)
0