8000 Post mypy results to PR review · matplotlib/cycler@2c30129 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2c30129

Browse files
10000 committed
Post mypy results to PR review
This uses reviewdog, similar to on the main Matplotlib repo.
1 parent 03ca21b commit 2c30129

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

.github/workflows/mypy.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,27 @@ jobs:
2222
- name: Set up Python
2323
uses: actions/setup-python@v4
2424

25+
- name: Set up reviewdog
26+
run: |
27+
mkdir -p "$HOME/bin"
28+
curl -sfL \
29+
https://github.com/reviewdog/reviewdog/raw/master/install.sh | \
30+
sh -s -- -b "$HOME/bin"
31+
echo "$HOME/bin" >> $GITHUB_PATH
32+
2533
- name: Install Python dependencies
2634
run: |
2735
python -m pip install --upgrade pip
2836
python -m pip install --upgrade mypy
2937
3038
- name: Install cycler
3139
run: |
32-
python -m pip install --no-deps .
40+
python -m pip install --no-deps -e .
3341
3442
- name: Run mypy
43+
env:
44+
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3545
run: |
36-
mypy cycler test_cycler.py
46+
mypy cycler test_cycler.py | \
47+
reviewdog -f=mypy -name=mypy \
48+
-tee -reporter=github-check -filter-mode nofilter

0 commit comments

Comments
 (0)
0