-
Notifications
You must be signed in to change notification settings - Fork 30
37 lines (35 loc) · 963 Bytes
/
ci.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
name: ci
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
ci:
strategy:
fail-fast: false
matrix:
python-version: [3.8, 3.11]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Run image
uses: abatilo/[email protected]
- name: Install
run: poetry install && echo "$(poetry env info --path)/bin" >> $GITHUB_PATH
- name: Test
run: poetry run pytest -v
- name: Fmt
run: poetry run ruff format . --check
- name: Ruff
run: poetry run ruff check .
- name: Deptry
run: poetry run deptry .
- uses: jakebailey/pyright-action@v1
if: ${{ matrix.os != 'windows-latest' }}