forked from cmake-lint/cmake-lint
-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (37 loc) · 942 Bytes
/
lint-and-fmt.yml
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
name: Lint and Format
on:
push:
branches: [main]
pull_request:
merge_group:
workflow_dispatch:
jobs:
lint-and-fmt:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8"]
name: lint and format - Python ${{ matrix.python-version }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install uv
run: curl -LsSf https://astral.sh/uv/install.sh | sh
- name: Install python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Install just
uses: extractions/setup-just@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Initialize venv and install packages
run: |
just install
- name: lint
run: |
just lint
- name: format check
run: |
just fmt