-
Notifications
You must be signed in to change notification settings - Fork 1
58 lines (43 loc) · 1.13 KB
/
checks.yml
File metadata and controls
58 lines (43 loc) · 1.13 KB
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
#
# SPDX-FileCopyrightText: The LineageOS Project
# SPDX-License-Identifier: LGPL-3.0-or-later
#
name: checks
on: [push, pull_request, workflow_dispatch]
jobs:
ruff-check:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: ruff check
uses: astral-sh/ruff-action@v3
ruff-format:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: ruff check
uses: astral-sh/ruff-action@v3
with:
args: "format --check --diff"
pyright:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Install Poetry
shell: bash
run: pipx install poetry
- name: Set up Python
uses: actions/setup-python@v4
with:
cache: 'poetry'
- name: Install dependencies
shell: bash
run: poetry install
- name: Add Poetry to PATH
shell: bash
run: echo "$(poetry env info --path)/bin" >> $GITHUB_PATH
- name: pyright
uses: jakebailey/pyright-action@v2