v0.1.398 #16
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@v2 | |
with: | |
python-version: 3.11 | |
- name: Install EE API | |
run: | | |
pip install ./python | |
pip install pyright | |
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 |