-
Notifications
You must be signed in to change notification settings - Fork 977
44 lines (44 loc) · 1.21 KB
/
ci-type-verification.yml
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
name: ci-type-verification
on:
# Triggers the workflow when new code is pushed to the master branch.
push:
branches: [ master ]
# Enables running this workflow manually from the Actions tab.
workflow_dispatch:
jobs:
build:
name: "Type verification"
runs-on: ubuntu-latest
steps:
- name: Cancel previous
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
if: ${{github.ref != 'refs/head/master'}}
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Install EE API
run: |
pip install ./python[tests]
pip install pyright
pip install pytype
pip install mypy
- name: pyright ee type verification
run: |
pyright --verifytypes ee
continue-on-error: true
- name: pyright ee.cli type verification
run: |
pyright --verifytypes ee.cli
continue-on-error: true
- name: mypy ee and ee.cli type verification
run: |
mypy -p ee
continue-on-error: true
- name: pytype ee type verification
run: |
cd python
pytype -k -d import-error ee