-
Notifications
You must be signed in to change notification settings - Fork 1
59 lines (51 loc) · 1.55 KB
/
commit_checks.yaml
File metadata and controls
59 lines (51 loc) · 1.55 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
59
# SPDX-FileCopyrightText: 2025 Helio Chissini de Castro <heliocastro@gmail.com>
#
# SPDX-License-Identifier: MIT
name: Validation
permissions:
contents: read
pull-requests: write
on:
workflow_dispatch:
pull_request:
paths-ignore:
- '**.md'
push:
branches: [main]
jobs:
commitlint:
name: Commit Lint
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: webiny/action-conventional-commits@faccb24fc2550dd15c0390d944379d2d8ed9690e # v1.3.1
typecheck:
needs: commitlint
name: ty Type Checker
runs-on: ubuntu-24.04
steps:
- name: Check out code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
with:
enable-cache: true
activate-environment: "true"
python-version: "3.13"
- name: Run ty Type Checker
run: |
uv sync
uv run ty check --output-format github
ruff:
needs: commitlint
name: Ruff Python Linter
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Ruff Check
uses: astral-sh/ruff-action@4919ec5cf1f49eff0871dbcea0da843445b837e6
with:
args: 'check --config pyproject.toml'
- name: Ruff Format
uses: astral-sh/ruff-action@4919ec5cf1f49eff0871dbcea0da843445b837e6
with:
args: 'format --check --config pyproject.toml'