-
Notifications
You must be signed in to change notification settings - Fork 30
43 lines (41 loc) · 1.3 KB
/
type-check.yaml
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
31
32
33
34
35
36
37
38
39
40
41
42
43
# This workflow should work but will fail
# as the code has no types, will add types to the
# code and then uncomment it 👍
# name: Type Check
# on:
# - push
# - pull_request
# jobs:
# check-type:
# runs-on: ubuntu-latest
# steps:
# # Check out repository
# - name: Check out repository
# uses: actions/checkout@v3
# # Set up python
# - name: Set up python
# id: setup-python
# uses: actions/setup-python@v3
# with:
# python-version: '3.11'
# # Install Poetry
# - name: Install Poetry
# uses: snok/install-poetry@v1
# with:
# virtualenvs-create: true
# virtualenvs-in-project: true
# installer-parallel: true
# # Load cached if it exists
# - name: Load cached venv
# id: cached-poetry-dependencies
# uses: actions/cache@v2
# with:
# path: .venv
# key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
# # Install dependencies if cache does not exist
# - name: Install dependencies
# if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
# run: poetry install --no-interaction --no-root
# # Run type checking suite
# - name: Check types
# run: poetry run mypy tesk/