Skip to content

XCOM gamma-ray photoionization #21

XCOM gamma-ray photoionization

XCOM gamma-ray photoionization #21

Workflow file for this run

---
name: clang-tidy-review
on:
workflow_dispatch:
pull_request:
branches-ignore:
- classic*
jobs:
clang-tidy-review:
name: clang-tidy-review
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt update
sudo apt install -y clang-15 --install-suggests
sudo apt install -y llvm-15 --install-suggests
echo "CXX=clang++-15" >> $GITHUB_ENV
echo "OMPI_CXX=clang++-15" >> $GITHUB_ENV
sudo apt install -y libgsl-dev
sudo apt install -y openmpi-bin libopenmpi-dev
echo "compiledb" > requirements.txt
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: pip
- name: Generate compile_commands.json
run: |
pip install compiledb
compiledb -n --full-path make
- uses: ZedThree/clang-tidy-review@v0.14.0
id: review
with:
lgtm_comment_body: ''
# Uploads an artefact containing clang_fixes.json
- uses: ZedThree/clang-tidy-review/upload@v0.14.0
id: upload-review
# If there are any comments, fail the check
- if: steps.review.outputs.total_comments > 0
run: exit 1