forked from matplotlib/matplotlib
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (25 loc) · 791 Bytes
/
mypy-stubtest.yml
File metadata and controls
30 lines (25 loc) · 791 Bytes
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
---
name: Mypy Stubtest
on: [pull_request]
permissions:
contents: read
checks: write
jobs:
mypy-stubtest:
name: mypy-stubtest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install mypy
run: |
pip3 install -r requirements/testing/mypy.txt -r requirements/testing/all.txt
pip3 install .
- name: Run mypy stubtest
run: |
# the ignore missing imports can be removed when typed cycler is released and used
MPLBACKEND=agg python -m mypy.stubtest matplotlib --mypy-config-file pyproject.toml \
--allowlist ci/mypy-stubtest-allowlist.txt