-
Notifications
You must be signed in to change notification settings - Fork 0
79 lines (66 loc) · 1.84 KB
/
lint.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
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
---
name: Lint 🧹
# yamllint disable rule:truthy
on:
push:
branches:
- main
workflow_dispatch:
jobs:
lint:
name: Run linters
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v4
with:
submodules: "recursive"
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Setup bun
uses: oven-sh/setup-bun@v2
- name: patch package.json
run: |
bun install
bun run ci:patch
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Install corepack and yarn
run: |
corepack enable
yarn set version stable
- name: Rollback package.json
run: |
bun run ci:rollback
- name: Lint root
run: |
python -m pip install -r requirements/dev.txt
python scripts/_py/lint.py --root
bun run lint:root
- name: Lint python_only package
run: |
cd python_only
pip install -r requirements/main.txt -r requirements/dev.txt -r requirements/test.txt
python scripts/lint.py
- name: Lint ts_olny package
run: |
cd ts_only
bun install
bun run lint
- name: Lint python_and_ts package
run: |
cd both
bun install
bun run lint
pip install --upgrade pip
pip install -r requirements/main.txt -r requirements/dev.txt -r requirements/test.txt
python scripts/lint.py