-
Notifications
You must be signed in to change notification settings - Fork 443
36 lines (36 loc) · 1.34 KB
/
type-checking.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
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: .