add type checking to CI (3) #3
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: Type-check Ryven and ryvencore-qt using mypy | |
on: | |
push: | |
branches: | |
- main | |
- dev | |
pull_request: | |
branches: | |
- '*' | |
workflow_dispatch: | |
jobs: | |
Build-and-Publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: 3.10.x | |
architecture: x64 | |
- name: Install ryvencore-qt dependencies | |
run: python -m pip install . --user && python -m pip uninstall ryvencore-qt --yes | |
working-directory: ./ryvencore-qt | |
- name: Install Ryven dependencies | |
run: python -m pip install . --user && python -m pip uninstall ryven --yes | |
working-directory: ./ryven-editor | |
- name: Install type-checking dependencies | |
run: python -m pip install mypy, pyside2 --user | |
- name: Typecheck | |
run: mypy | |
working-directory: . |