Remove jq #56
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test Action in CI | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
env: | |
CLANG_TIDY_VERSION: 17.0.1 | |
CMAKE_VERSION: 3.21.3 | |
# cannot use > 3.11 due to https://github.com/ssciwr/clang-tidy-wheel/issues/66 | |
PYTHON_VERSION: 3.11 | |
jobs: | |
check-action: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ env.PYTHON_VERSION }} | |
- name: Install dependencies | |
run: | | |
pip install clang-tidy==${CLANG_TIDY_VERSION} cmake==${CMAKE_VERSION} | |
- name: Configure Test project | |
run: | | |
mkdir build | |
cd build | |
cmake ../tests | |
- name: Run clang-tidy | |
run: | | |
cd build | |
cmake --build . --target clang-tidy | |
- name: Test Suggest Fixes | |
uses: ./ | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
request_changes: false | |
clang_tidy_fixes: build/fixes.yaml | |
check-action-with-custom-python: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
id: setup-python | |
with: | |
python-version: ${{ env.PYTHON_VERSION }} | |
- name: Install dependencies | |
run: | | |
pip install clang-tidy==${CLANG_TIDY_VERSION} cmake==${CMAKE_VERSION} | |
- name: Configure Test project | |
run: | | |
mkdir build | |
cd build | |
cmake ../tests | |
- name: Run clang-tidy | |
run: | | |
cd build | |
cmake --build . --target clang-tidy | |
- name: Test Suggest Fixes | |
uses: ./ | |
with: | |
# Use existing Python installation instead of installing a new one | |
python_path: ${{ steps.setup-python.outputs.python-path }} | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
request_changes: false | |
clang_tidy_fixes: build/fixes.yaml |