-
Notifications
You must be signed in to change notification settings - Fork 59
47 lines (44 loc) · 1.08 KB
/
validate.yaml
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
name: validate
on:
workflow_call:
pull_request:
push:
branches:
- main
jobs:
lint:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Set up Node.js for pyright
uses: actions/setup-node@v3
with:
node-version: '18.x'
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install --upgrade poetry
poetry install
make install-pyright
- run: make lint-style
- run: make lint-types
test:
strategy:
matrix:
python: ['3.9', '3.10', '3.11', '3.12']
os: [ubuntu-22.04, macos-13]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install --upgrade poetry
poetry install
- run: make test