forked from nebari-dev/nebari
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (40 loc) · 998 Bytes
/
typing.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
44
45
name: "Typing Check"
on:
pull_request:
paths:
- ".github/workflows/typing.yaml"
- "src/**"
- "pyproject.toml"
push:
branches:
- main
- release/\d{4}.\d{1,2}.\d{1,2}
paths:
- ".github/workflows/typing.yaml"
- "src/**"
- "pyproject.toml"
jobs:
typing-check:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
steps:
- name: "Checkout Repository"
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: "pip"
- name: Install Nebari and type stubs
run: |
python --version
pip install -e .[dev]
pip install types-Pygments types-requests types-six
- name: Run MyPy
continue-on-error: true
run: |
mypy