-
Notifications
You must be signed in to change notification settings - Fork 9
46 lines (37 loc) · 949 Bytes
/
check.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
44
45
46
name: Check
on:
pull_request:
types: [opened, reopened, synchronize]
push:
branches:
- main
permissions:
contents: read
jobs:
run-checks:
name: Check python-${{ matrix.python-version }}, ${{ matrix.os }}
timeout-minutes: 5
strategy:
matrix:
os:
- "ubuntu-latest"
python-version:
- "3.12"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v3
- name: Check Python lint
run: uvx ruff check . --config pyproject.toml
- name: Check Python formatting
run: uvx ruff format --check . --config pyproject.toml
- name: Check Scenarios formatting
run: |
npm ci
npx prettier --check "scenarios/**/*.{toml,json,yaml}"
typos:
runs-on: ubuntu-latest
name: Check typos
steps:
- uses: actions/checkout@v4
- uses: crate-ci/typos@master