Skip to content

Commit 07ac3b9

Browse files
authored
feat: add test and remove setup.py (#75)
* feat: add test and remove setup.py * fix: update --tools to --tool
1 parent 11c3bef commit 07ac3b9

File tree

2 files changed

+15
-22
lines changed

2 files changed

+15
-22
lines changed

.github/workflows/python-test.yml

+15-11
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ on:
1010
- "**.py"
1111
- "**requirements*.txt"
1212
- pyproject.toml
13-
- setup.py
1413
- .pre-commit-config.yaml
1514
- ".github/workflows/python-test.yml"
1615
- "!docs/**"
@@ -81,18 +80,22 @@ jobs:
8180
shell: bash
8281
run: pip install dist/*.whl
8382

84-
- name: Install clang-tools
85-
run: clang-tools --install ${{ matrix.version }}
83+
- name: Install clang-tools binaries
84+
run: clang-tools --install ${{ matrix.version }} --tool clang-format clang-tidy clang-query clang-apply-replacements
8685

8786
- name: Show path of binaries
8887
shell: bash
8988
run: |
9089
if [ "${{ matrix.version }}" = "15" -o "${{ matrix.version }}" = "16" ] && [ "${{ matrix.os }}" = "windows-latest" ]; then
9190
which clang-format
9291
which clang-tidy
92+
which clang-query
93+
which clang-apply-replacements
9394
elif [ "${{ matrix.os }}" = "ubuntu-latest" ]; then
9495
which "clang-format-${{ matrix.version }}"
9596
which "clang-tidy-${{ matrix.version }}"
97+
which "clang-query-${{ matrix.version }}"
98+
which "clang-apply-replacements-${{ matrix.version }}"
9699
fi
97100
98101
- name: Check clang-tools on Windows
@@ -103,10 +106,14 @@ jobs:
103106
15|16)
104107
clang-format.exe --version
105108
clang-tidy.exe --version
109+
clang-query.exe --version
110+
clang-apply-replacements.exe --version
106111
;;
107112
*)
108113
clang-format-${{ matrix.version }}.exe --version
109114
clang-tidy-${{ matrix.version }}.exe --version
115+
clang-query-${{ matrix.version }}.exe --version
116+
clang-apply-replacements-${{ matrix.version }}.exe --version
110117
;;
111118
esac
112119
@@ -116,16 +123,13 @@ jobs:
116123
if [ "${{ matrix.version }}" = "12.0.1" -a "${{ matrix.os }}" = "ubuntu-latest" ]; then
117124
clang-format-12.0.1 --version
118125
clang-tidy-12.0.1 --version
126+
clang-query-12.0.1 --version
127+
clang-apply-replacements-12.0.1 --version
119128
else
120129
clang-format-${{ matrix.version }} --version
121-
case "${{ matrix.version }}" in
122-
14|15|16)
123-
echo "Skipping version ${{ matrix.version }} due to Segmentation fault on Ubuntu."
124-
;;
125-
*)
126-
clang-tidy-${{ matrix.version }} --version
127-
;;
128-
esac
130+
clang-tidy-${{ matrix.version }} --version
131+
clang-query-${{ matrix.version }} --version
132+
clang-apply-replacements-${{ matrix.version }} --version
129133
fi
130134
131135
docs:

setup.py

-11
This file was deleted.

0 commit comments

Comments
 (0)