Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 22 additions & 19 deletions .github/workflows/test.yml → .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,33 +18,36 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set bazel version to 6.5.0
- name: Set clang version
run: echo "/usr/lib/llvm-18/bin" >> $GITHUB_PATH

- name: Set bazel version
run: echo "6.5.0" > .bazelversion

- name: Setup Bazel
uses: bazel-contrib/setup-bazel@0.15.0

- name: Install python
uses: actions/setup-python@v5
with:
python-version: '3.12'

- name: Install CodeChecker analyzers
run: |
sudo apt-get update --quiet
sudo apt-get install --no-install-recommends \
clang \
clang-tools \
clang-tidy

- name: Install CodeChecker
run: pip3 install codechecker

- name: Print versions
- name: Check tools
run: |
echo "PATH=$PATH"
which clang
clang --version
which clang-tidy
clang-tidy --version
which clang-extdef-mapping
clang-extdef-mapping --version
which python3
python3 --version
which bazel
bazel version
which CodeChecker
CodeChecker version
echo "[NOTE]: If you are debugging, its possible that " \
"CodeChecker finds different analyzers when running in " \
"bazel's sandbox environment!"
CodeChecker analyzers

- name: Run Bazel test
run: bazel test ...

- name: Run unit tests
run: python3 test/test.py -vvv
3 changes: 0 additions & 3 deletions test/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ codechecker_test(
name = "codechecker_pass",
analyze = [
"--ctu",
"--stats",
],
config = "codechecker_config_json",
targets = [
Expand Down Expand Up @@ -260,7 +259,6 @@ code_checker_test(
name = "code_checker_pass",
options = [
"--ctu",
"--stats",
],
targets = [
"test_pass",
Expand All @@ -284,7 +282,6 @@ code_checker_test(
name = "code_checker_ctu",
options = [
"--ctu",
"--stats",
],
tags = [
"manual",
Expand Down