forked from saga-soft/novelWriter
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (35 loc) · 852 Bytes
/
Copy pathsyntax.yml
File metadata and controls
41 lines (35 loc) · 852 Bytes
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
name: Syntax
on:
push:
branches:
- main
- release
pull_request:
branches:
- main
- release
jobs:
checkSyntax:
name: Linting and Type Checking
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout Source
uses: actions/checkout@v7
- name: Install UV and Python
uses: astral-sh/setup-uv@v8.2.0
with:
enable-cache: true
- name: Install Dependencies
run: |
uv sync --no-dev --group lint
- name: Ruff Check
run: |
uv run --no-sync ruff --version
uv run --no-sync ruff format --check
uv run --no-sync ruff check --output-format github
- name: Pyright Check
run: |
uv run --no-sync pyright --version
uv run --no-sync pyright