-
Notifications
You must be signed in to change notification settings - Fork 6
48 lines (40 loc) · 1.13 KB
/
lint.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
name: lint
on:
push:
pull_request:
types: [opened, reopened, synchronize]
jobs:
check:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.11"]
name: check ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up CPython ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
id: install-deps
run: |
python -m pip install --upgrade pip setuptools wheel black requests
pip install -U -r requirements.txt
- name: Setup node.js
uses: actions/setup-node@v3
with:
node-version: "16"
- name: Run Pyright
uses: jakebailey/pyright-action@v1
with:
version: "1.1.289"
warnings: false
no-comments: ${{ matrix.python-version != '3.x' }}
- name: Run black
if: ${{ always() && steps.install-deps.outcome == 'success' }}
run: |
black --check kick examples