type checking, pyside6 support, updated packages #24
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: | |
Type-check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: 3.10.x | |
architecture: x64 | |
# if we are not on the main branch, install ryvencore from the dev branch from github | |
# otherise, install ryvencore from the main branch from github | |
- if: github.ref != 'refs/heads/main' | |
run: python -m pip install git+https://github.com/leon-thomm/ryvencore.git@dev | |
- if: github.ref == 'refs/heads/main' | |
run: python -m pip install git+https://github.com/leon-thomm/ryvencore.git@main | |
- 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 pyside6 PySide6-stubs types-Pygments --user | |
- name: Typecheck | |
run: mypy | |
working-directory: . |