Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b0dd5ab

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

File tree

Expand file treeCollapse file tree

1 file changed

+5
-8
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-8
lines changed

‎.github/workflows/mypy-stubtest.yml

Copy file name to clipboardExpand all lines: .github/workflows/mypy-stubtest.yml
+5-8Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.