-
Notifications
You must be signed in to change notification settings - Fork 11
63 lines (50 loc) · 1.44 KB
/
main.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
57
58
59
60
61
62
63
name: CI
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
os: ['ubuntu-latest', 'windows-latest']
python-version: [ '3.7', '3.8', '3.9', '3.10', '3.11' ]
runs-on: ${{ matrix.os }}
name: OS ${{ matrix.os }}, Python ${{ matrix.python-version }}
steps:
# Checks out a copy of your repository on the machine
- name: Checkout code
uses: actions/checkout@v3
# Setup python
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
architecture: x64
# Setup node.js (for pyright)
- name: Setup node.js (for pyright)
uses: actions/setup-node@v3
with:
node-version: 16
# Install pyright
- name: Install pyright
run: |
npm install -g pyright
# Install this package
- name: Install this package
run: |
python -m pip install .
# Install dependencies
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
# Run pytests
- name: Run pytests
run: |
pytest tests/ --showlocals --verbose
# Run mypy
- name: Run mypy
run: |
mypy tests construct_typed
# Run pyright
- name: Run pyright
run: |
pyright