From 07ac3b9e2689575eb3ea5449ff483d72a23aa2c8 Mon Sep 17 00:00:00 2001 From: Peter Shen Date: Thu, 18 Jan 2024 08:01:38 -0700 Subject: [PATCH 1/2] feat: add test and remove setup.py (#75) * feat: add test and remove setup.py * fix: update --tools to --tool --- .github/workflows/python-test.yml | 26 +++++++++++++++----------- setup.py | 11 ----------- 2 files changed, 15 insertions(+), 22 deletions(-) delete mode 100644 setup.py diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index cca5db7..6336af3 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -10,7 +10,6 @@ on: - "**.py" - "**requirements*.txt" - pyproject.toml - - setup.py - .pre-commit-config.yaml - ".github/workflows/python-test.yml" - "!docs/**" @@ -81,8 +80,8 @@ 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 @@ -90,9 +89,13 @@ jobs: 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 @@ -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 @@ -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: diff --git a/setup.py b/setup.py deleted file mode 100644 index 27265b8..0000000 --- a/setup.py +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env python -"""Info used for installing the clang-tools package. - -Since using setup.py is no longer std convention, -all install information is located in pyproject.toml -""" - -import setuptools - - -setuptools.setup() From 31c42ae4d1411becee4e6018f6f7260247b67a8b Mon Sep 17 00:00:00 2001 From: Peter Shen Date: Mon, 5 Feb 2024 11:01:45 +0800 Subject: [PATCH 2/2] change token to GITHUB_TOKEN for release drafter (#77) --- .github/workflows/release-drafter.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index a824842..50cbd45 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -10,7 +10,7 @@ jobs: update_release_draft: runs-on: ubuntu-latest steps: - # Drafts your next Release notes as Pull Requests are merged into the default branch + # Draft your next Release notes as Pull Requests are merged into the default branch - uses: release-drafter/release-drafter@v5 env: - GITHUB_TOKEN: ${{ secrets.CPP_LINTER_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}