Skip to content

Commit 54cfd29

Browse files
authored
add pytype3.10 action (#40)
1 parent ef27fec commit 54cfd29

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

.github/workflows/test_pr.yaml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Notebook-related checks
22

3-
name: Run all tests
3+
name: Presubmit checks
44

55
on:
66
# Relevant PRs
@@ -13,7 +13,7 @@ on:
1313

1414
jobs:
1515
test3_11:
16-
name: py 3.11
16+
name: Test Py3.11
1717
runs-on: ubuntu-latest
1818
steps:
1919
- uses: actions/checkout@v3
@@ -26,7 +26,7 @@ jobs:
2626
pip install -q -e .[dev]
2727
python -m unittest discover --pattern '*test*.py'
2828
test3_10:
29-
name: py 3.10
29+
name: Test Py3.10
3030
runs-on: ubuntu-latest
3131
steps:
3232
- uses: actions/checkout@v3
@@ -39,7 +39,7 @@ jobs:
3939
pip install -q -e .[dev]
4040
python -m unittest discover --pattern '*test*.py'
4141
test3_9:
42-
name: py 3.9
42+
name: Test Py3.9
4343
runs-on: ubuntu-latest
4444
steps:
4545
- uses: actions/checkout@v3
@@ -51,6 +51,19 @@ jobs:
5151
python --version
5252
pip install -q -e .[dev]
5353
python -m unittest discover --pattern '*test*.py'
54+
pytype3_10:
55+
name: pytype 3.10
56+
runs-on: ubuntu-latest
57+
steps:
58+
- uses: actions/checkout@v3
59+
- uses: actions/setup-python@v4
60+
with:
61+
python-version: '3.10'
62+
- name: Run pytype
63+
run: |
64+
python --version
65+
pip install -q -e .[dev]
66+
pytype
5467
format:
5568
name: Check format with black
5669
runs-on: ubuntu-latest
@@ -65,3 +78,4 @@ jobs:
6578
pip install -q -e .
6679
pip install -q black
6780
black . --check
81+

0 commit comments

Comments
 (0)