|
10 | 10 | Test: |
11 | 11 | strategy: |
12 | 12 | matrix: |
13 | | - python-version: ["3.5", "3.6", "3.7","3.8", "3.9", "3.10.0-alpha.4", "pypy3"] |
| 13 | + python-version: ["3.7", "3.8", "3.9", "3.10.0-alpha.4", "pypy-3.7"] |
14 | 14 | os: [ubuntu-latest, windows-latest] |
15 | 15 |
|
16 | 16 | runs-on: ${{ matrix.os }} |
@@ -50,34 +50,29 @@ jobs: |
50 | 50 | uses: codecov/codecov-action@v1 |
51 | 51 | with: |
52 | 52 | flags: ${{ runner.os }} |
| 53 | + |
| 54 | + Typecheck: |
| 55 | + runs-on: ubuntu-latest |
| 56 | + steps: |
| 57 | + # setup |
| 58 | + - name: Checkout Repository |
| 59 | + uses: actions/checkout@v2 |
| 60 | + |
| 61 | + - name: Set up Python ${{ matrix.python-version }} |
| 62 | + uses: actions/setup-python@v2 |
| 63 | + with: |
| 64 | + python-version: "3.9" |
53 | 65 |
|
| 66 | + # dependencies |
| 67 | + - name: Restore pip cache |
| 68 | + uses: actions/cache@v2 |
| 69 | + with: |
| 70 | + path: ~/.cache/pip |
| 71 | + key: ${{ runner.os }}-pip-${{ hashFiles('setup.cfg') }} |
| 72 | + |
| 73 | + - name: Install test dependencies |
| 74 | + run: python -m pip --cache-dir ~/.cache/pip install --quiet mypy |
54 | 75 |
|
55 | | -# Typecheck: # disabled until we have type hints |
56 | | -# runs-on: ubuntu-latest |
57 | | -# strategy: |
58 | | -# matrix: |
59 | | -# python-version: ["3.5", "3.6", "3.7", "3.8", "3.9", "3.10.0-alpha.4", "pypy3"] |
60 | | -# |
61 | | -# steps: |
62 | | -# # setup |
63 | | -# - name: Checkout Repository |
64 | | -# uses: actions/checkout@v2 |
65 | | -# |
66 | | -# - name: Set up Python ${{ matrix.python-version }} |
67 | | -# uses: actions/setup-python@v2 |
68 | | -# with: |
69 | | -# python-version: ${{ matrix.python-version }} |
70 | | -# |
71 | | -# # dependencies |
72 | | -# - name: Restore pip cache |
73 | | -# uses: actions/cache@v2 |
74 | | -# with: |
75 | | -# path: ~/.cache/pip |
76 | | -# key: ${{ runner.os }}-pip-${{ hashFiles('setup.cfg') }} |
77 | | -# |
78 | | -# - name: Install lint dependencies |
79 | | -# run: python -m pip --cache-dir ~/.cache/pip install --quiet mypy |
80 | | -# |
81 | | -# # lint |
82 | | -# - name: run MyPy |
83 | | -# run: python -m mypy --config-file setupg.cfg . |
| 76 | + # check |
| 77 | + - name: run MyPy |
| 78 | + run: python -m mypy --config-file setup.cfg -p pyhp |
0 commit comments