-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (34 loc) · 1015 Bytes
/
format.yml
File metadata and controls
42 lines (34 loc) · 1015 Bytes
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
# Copyright Agustin K-ballo Berge, Fusion Fenix 2026
#
# Distributed under the Boost Software License, Version 1.0. (See accompanying
# file LICENSE.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
name: format
on:
push:
branches: [ main, feature/** ]
pull_request:
types: [opened, synchronize, reopened]
jobs:
format:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v5
# clang-format
- name: Run clang-format check
uses: jidicula/clang-format-action@v4.16.0
with:
clang-format-version: "22"
check-path: "."
exclude-regex: 'test/catch\.hpp'
# gersemi
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.11'
- name: Install Gersemi
run: |
python -m pip install --upgrade pip
pip install gersemi[color]
- name: Run Gersemi check
run: gersemi --check --diff --color .