File: tidy.yml

package info (click to toggle)
quantlib 1.40-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 41,768 kB
  • sloc: cpp: 398,987; makefile: 6,574; python: 214; sh: 150; lisp: 86
file content (34 lines) | stat: -rw-r--r-- 1,126 bytes parent folder | download
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
name: Apply clang-tidy fixes
on:
  schedule:
    - cron: '0 0 * * 0'
  workflow_dispatch:
jobs:
  check:
    runs-on: ubuntu-24.04
    steps:
    - uses: actions/checkout@v5
    - name: Setup
      run: |
        sudo apt-get update
        sudo apt-get install -y clang-tidy-19 libboost-dev
    - name: Check
      run: |
        cmake --preset linux-ci-build-with-clang-tidy
        cd build/linux-ci-build-with-clang-tidy
        cmake --build . -j1
    - uses: peter-evans/create-pull-request@v7
      if: ${{ always() }}
      with:
        token: ${{ secrets.MACHINE_ACCOUNT_PAT }}
        push-to-fork: ${{ vars.MACHINE_ACCOUNT }}/QuantLib
        branch: clang-tidy-fixes-${{ github.ref_name }}
        delete-branch: true
        commit-message: 'Automated fixes by clang-tidy'
        title: 'Automated fixes by clang-tidy'
        author: lballabio[bot] <224797326+lballabio-bot@users.noreply.github.com>
        body: |
          This is an automated PR generated by the [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action.

          Please review the changes before merging.