-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (41 loc) · 926 Bytes
/
checks.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
name: Checks
on:
push:
branches:
- main
pull_request:
branches:
- '**'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.11'
# pyright needs node
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ".[dev]"
- name: Run pyright type check
run: |
pyright .
- name: Run ruff lint
run: |
ruff check --fix-only .
- name: Run ruff format
run: |
ruff format .
- name: Run tests
run: |
python -m pytest --runslow --durations=10