-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (34 loc) · 1023 Bytes
/
linting.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
name: Linting
on: push
jobs:
changes:
uses: ./.github/workflows/filter.yaml
lint-python:
needs: changes
if: ${{ needs.changes.outputs.algorithmic == 'true' }}
name: Python Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Lint with pylint
run: |
$CONDA/bin/conda install -c conda-forge pylint=2.15
$CONDA/bin/pylint --reports yes src/python/*
clang-format:
needs: changes
if: ${{ needs.changes.outputs.algorithmic == 'true' }}
name: c++ Lint clang-format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run clang-format style check for C/C++ programs.
uses: jidicula/[email protected]
with:
clang-format-version: "12"
check-path: "."
fallback-style: "LLVM"
exclude-regex: "(lib|CMakeFiles|vendor)"