-
Notifications
You must be signed in to change notification settings - Fork 6
56 lines (47 loc) · 1.54 KB
/
check.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
45
46
47
48
49
50
51
52
53
54
55
56
name: Type Check
on:
push:
jobs:
check:
name: Type Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.GH_PAT || github.token }}
submodules: recursive
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10.12'
- name: Install and configure Poetry
uses: snok/install-poetry@v1
with:
version: 1.5.1
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
# - name: Cache Poetry virtualenv
# uses: actions/cache@v3
# id: cached-poetry-dependencies
# with:
# path: .venv
# key: poetry-venv-${{ runner.os }}-py3.10-${{ hashFiles('**/poetry.lock') }}
- name: Install Dependencies
# if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install --no-interaction
- name: Check Python Version
run: poetry run python --version
- name: Check Installed Packages
run: poetry run pip list
# - name: Type Check with mypy
# if: always()
# run: |
# poetry run mypy spatialyze || true
# poetry run mypy --install-types --non-interactive spatialyze || true
# poetry run mypy spatialyze
- name: Type Check with pyright
if: always()
run: poetry run pyright spatialyze
# env:
# PYRIGHT_PYTHON_FORCE_VERSION: latest