Skip to content

Commit 10b6175

Browse files
committed
add mypy action
1 parent 5e3bdf9 commit 10b6175

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

.github/workflows/pytest.yaml

+26-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Run pytest
1+
name: Run pytest and mypy
22

33
on:
44
workflow_call:
@@ -62,3 +62,28 @@ jobs:
6262
fail_ci_if_error: true
6363
slug: PGScatalog/pygscatalog
6464
flags: ${{ inputs.package-directory }}
65+
66+
mypy:
67+
runs-on: ubuntu-latest
68+
69+
steps:
70+
- uses: actions/checkout@v4
71+
72+
- name: Install Python
73+
uses: actions/setup-python@v5
74+
with:
75+
python-version: ${{ inputs.python-version }}
76+
cache: 'pip'
77+
78+
- uses: actions/cache@v4
79+
with:
80+
path: ${{ inputs.package-directory }}/.venv
81+
key: venv-${{ hashFiles('**/poetry.lock') }}
82+
83+
- run: pip install poetry
84+
85+
- run: poetry install --with dev --all-extras
86+
working-directory: ${{ inputs.package-directory }}
87+
88+
- run: mypy # import to run in top level directory
89+

0 commit comments

Comments
 (0)