Skip to content

Commit

Permalink
feat: add test and remove setup.py (#75)
Browse files Browse the repository at this point in the history
* feat: add test and remove setup.py

* fix: update --tools to --tool
  • Loading branch information
shenxianpeng committed Jan 18, 2024
1 parent 11c3bef commit 07ac3b9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 22 deletions.
26 changes: 15 additions & 11 deletions .github/workflows/python-test.yml
Expand Up @@ -10,7 +10,6 @@ on:
- "**.py"
- "**requirements*.txt"
- pyproject.toml
- setup.py
- .pre-commit-config.yaml
- ".github/workflows/python-test.yml"
- "!docs/**"
Expand Down Expand Up @@ -81,18 +80,22 @@ jobs:
shell: bash
run: pip install dist/*.whl

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

- name: Show path of binaries
shell: bash
run: |
if [ "${{ matrix.version }}" = "15" -o "${{ matrix.version }}" = "16" ] && [ "${{ matrix.os }}" = "windows-latest" ]; then
which clang-format
which clang-tidy
which clang-query
which clang-apply-replacements
elif [ "${{ matrix.os }}" = "ubuntu-latest" ]; then
which "clang-format-${{ matrix.version }}"
which "clang-tidy-${{ matrix.version }}"
which "clang-query-${{ matrix.version }}"
which "clang-apply-replacements-${{ matrix.version }}"
fi
- name: Check clang-tools on Windows
Expand All @@ -103,10 +106,14 @@ jobs:
15|16)
clang-format.exe --version
clang-tidy.exe --version
clang-query.exe --version
clang-apply-replacements.exe --version
;;
*)
clang-format-${{ matrix.version }}.exe --version
clang-tidy-${{ matrix.version }}.exe --version
clang-query-${{ matrix.version }}.exe --version
clang-apply-replacements-${{ matrix.version }}.exe --version
;;
esac
Expand All @@ -116,16 +123,13 @@ jobs:
if [ "${{ matrix.version }}" = "12.0.1" -a "${{ matrix.os }}" = "ubuntu-latest" ]; then
clang-format-12.0.1 --version
clang-tidy-12.0.1 --version
clang-query-12.0.1 --version
clang-apply-replacements-12.0.1 --version
else
clang-format-${{ matrix.version }} --version
case "${{ matrix.version }}" in
14|15|16)
echo "Skipping version ${{ matrix.version }} due to Segmentation fault on Ubuntu."
;;
*)
clang-tidy-${{ matrix.version }} --version
;;
esac
clang-tidy-${{ matrix.version }} --version
clang-query-${{ matrix.version }} --version
clang-apply-replacements-${{ matrix.version }} --version
fi
docs:
Expand Down
11 changes: 0 additions & 11 deletions setup.py

This file was deleted.

0 comments on commit 07ac3b9

Please sign in to comment.