8000 Use tox in stubtest CI · matplotlib/matplotlib@b0dd5ab · GitHub
[go: up one dir, main page]

Skip to content

Commit b0dd5ab

Browse files
committed
Use tox in stubtest CI
Fix reviewdog sed Add tox install stage
1 parent 7c992b5 commit b0dd5ab

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

.github/workflows/mypy-stubtest.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,6 @@ jobs:
1818
with:
1919
python-version: 3.9
2020

21-
- name: Install mypy
22-
run: |
23-
pip3 install -r requirements/testing/mypy.txt \
24-
-r requirements/testing/all.txt
25-
pip3 install .
26-
2721
- name: Set up reviewdog
2822
run: |
2923
mkdir -p "$HOME/bin"
@@ -32,13 +26,16 @@ jobs:
3226
sh -s -- -b "$HOME/bin"
3327
echo "$HOME/bin" >> $GITHUB_PATH
3428
29+
- name: Install tox
30+
run: python -m pip install tox
31+
3532
- name: Run mypy stubtest
3633
env:
3734
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3835
run: |
3936
set -o pipefail
40-
MPLBACKEND=agg python tools/stubtest.py | \
41-
sed -e "s!$pythonLocation/lib/python3.9/site-packages!lib!g" | \
37+
tox -e stubtest | \
38+
sed -e "s!.tox/stubtest/lib/python3.11/site-packages!lib!g" | \
4239
reviewdog \
4340
-efm '%Eerror: %m' \
4441
-efm '%CStub: in file %f:%l' \

0 commit comments

Comments
 (0)
0