Skip to content

Commit 51a68a3

Browse files
committed
chore: enable typing ci
1 parent 2a7743e commit 51a68a3

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/push.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,29 @@ jobs:
2828
- name: Check format
2929
working-directory: ${{ matrix.lib }}
3030
run: poetry run black --check .
31+
32+
typing:
33+
runs-on: ubuntu-latest
34+
strategy:
35+
matrix:
36+
lib:
37+
- scaleway-core
38+
- scaleway
39+
- scaleway-async
40+
steps:
41+
- uses: actions/checkout@v2
42+
- name: Set up Python
43+
uses: actions/setup-python@v2
44+
with:
45+
python-version: 3.8
46+
- name: Install poetry
47+
working-directory: ${{ matrix.lib }}
48+
run: |
49+
pip install poetry
50+
poetry --version
51+
- name: Install dependencies
52+
working-directory: ${{ matrix.lib }}
53+
run: poetry install --no-root
54+
- name: Check typing
55+
working-directory: ${{ matrix.lib }}
56+
run: poetry run mypy --install-types --non-interactive --strict $(echo "${{ matrix.lib }}" | tr "-" "_")

0 commit comments

Comments
 (0)