-
Notifications
You must be signed in to change notification settings - Fork 1
81 lines (76 loc) · 2.44 KB
/
ci.yml
File metadata and controls
81 lines (76 loc) · 2.44 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: Validate/Test Files
on:
workflow_dispatch: {}
push: {}
jobs:
python-lint:
runs-on: ubuntu-slim
steps:
- name: checkout
uses: actions/checkout@v6
- name: setup python
run: |
curl -SsL https://mise.run | bash > /dev/null
~/.local/bin/mise trust --quiet .config/mise.toml
~/.local/bin/mise install --quiet ruff python
eval "$(~/.local/bin/mise activate bash)" > /dev/null
pip install -q --no-cache-dir --upgrade pip wheel uv
uv sync
- name: Ruff Format
run: |
eval "$(~/.local/bin/mise activate bash)" > /dev/null
ruff format --check
- name: Ruff Check
run: |
eval "$(~/.local/bin/mise activate bash)" > /dev/null
ruff check
- name: run mypy
run: |
eval "$(~/.local/bin/mise activate bash)" > /dev/null
uv run mypy .
markdown:
name: Markdown linting
runs-on: ubuntu-slim
steps:
- name: Checkout
uses: actions/checkout@v6
- name: setup markdownlint
run: |
curl -SsL https://mise.run | bash > /dev/null
~/.local/bin/mise trust --quiet .config/mise.toml
~/.local/bin/mise install --quiet markdownlint-cli2
- name: Markdown linting
run: |
eval "$(~/.local/bin/mise activate bash)" > /dev/null
markdownlint-cli2 .
yamllint:
name: Yaml Linting
runs-on: ubuntu-slim
steps:
- name: Checkout
uses: actions/checkout@v6
- name: setup yamllint
run: |
curl -SsL https://mise.run | bash > /dev/null
~/.local/bin/mise trust --quiet .config/mise.toml
~/.local/bin/mise install --quiet yamllint
- name: YAML linting
run: |
eval "$(~/.local/bin/mise activate bash)" > /dev/null
yamllint -c .yamllint-config.yaml --no-warnings .
jsonlint:
name: JSON linting
runs-on: ubuntu-slim
steps:
- name: Checkout
uses: actions/checkout@v6
- name: setup jq
run: |
curl -SsL https://mise.run | bash > /dev/null
~/.local/bin/mise trust --quiet .config/mise.toml
~/.local/bin/mise install --quiet jq
- name: JSON linting
run: |
eval "$(~/.local/bin/mise activate bash)" > /dev/null
LOG_FILES=true tools/check-json.sh