From ccae634282d0879c3a26885f85c2bcd1b62305b2 Mon Sep 17 00:00:00 2001 From: Nikita Grigorian Date: Wed, 5 Nov 2025 12:52:03 -0800 Subject: [PATCH] drop CPP and Python style checks workflows these workflows are redundant with pre-commit, and the CPP style checks workflow no longer uses default Ubuntu clang-format --- .github/workflows/cpp_style_checks.yml | 40 -------------- .github/workflows/python_style_checks.yml | 65 ----------------------- 2 files changed, 105 deletions(-) delete mode 100644 .github/workflows/cpp_style_checks.yml delete mode 100644 .github/workflows/python_style_checks.yml diff --git a/.github/workflows/cpp_style_checks.yml b/.github/workflows/cpp_style_checks.yml deleted file mode 100644 index 309f987b44..0000000000 --- a/.github/workflows/cpp_style_checks.yml +++ /dev/null @@ -1,40 +0,0 @@ -# This is a workflow to format C/C++ sources with clang-format - -name: C++ Code Style - -# Controls when the action will run. Triggers the workflow on push or pull request -# events but only for the master branch -on: - pull_request: - push: - branches: [master] - -permissions: read-all - -jobs: - formatting-check: - name: clang-format - runs-on: ubuntu-latest - timeout-minutes: 30 - steps: - - uses: actions/checkout@v5.0.0 - - name: Run clang-format style check for C/C++ programs. - uses: jidicula/clang-format-action@v4.15.0 - with: - clang-format-version: '18' - check-path: 'libsyclinterface' - - name: Run clang-format style check for api headers. - uses: jidicula/clang-format-action@v4.15.0 - with: - clang-format-version: '18' - check-path: 'dpctl/apis' - - name: Run clang-format style check for libtensor/source. - uses: jidicula/clang-format-action@v4.15.0 - with: - clang-format-version: '18' - check-path: 'dpctl/tensor/libtensor/source' - - name: Run clang-format style check for libtensor/include. - uses: jidicula/clang-format-action@v4.15.0 - with: - clang-format-version: '18' - check-path: 'dpctl/tensor/libtensor/include' diff --git a/.github/workflows/python_style_checks.yml b/.github/workflows/python_style_checks.yml deleted file mode 100644 index cb9bb4d59a..0000000000 --- a/.github/workflows/python_style_checks.yml +++ /dev/null @@ -1,65 +0,0 @@ -# This is a workflow to format Python code with black formatter - -name: Python Code Style - -# Controls when the action will run. Triggers the workflow on push or pull request -# events but only for the master branch -on: - pull_request: - push: - branches: [master] - -permissions: read-all - -# A workflow run is made up of one or more jobs that can run sequentially or in parallel -jobs: - # The isort job sorts all imports in .py, .pyx, .pxd files - isort: - runs-on: ubuntu-latest - timeout-minutes: 30 - steps: - - uses: actions/checkout@v5.0.0 - - uses: actions/setup-python@v6.0.0 - with: - python-version: '3.11' - - uses: jamescurtin/isort-action@master - with: - configuration: "--check-only" - - black: - # The type of runner that the job will run on - runs-on: ubuntu-latest - timeout-minutes: 30 - - # Steps represent a sequence of tasks that will be executed as part of the job - steps: - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v5.0.0 - # Set up a Python environment for use in actions - - uses: actions/setup-python@v6.0.0 - with: - python-version: '3.11' - - # Run black code formatter - - uses: psf/black@stable - with: - src: "." - options: "--check" - version: "24.4.2" - - flake8: - runs-on: ubuntu-latest - timeout-minutes: 30 - - steps: - - uses: actions/checkout@v5.0.0 - - name: Set up Python - uses: actions/setup-python@v6.0.0 - with: - python-version: '3.11' - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install flake8 - - name: Lint with flake8 - uses: py-actions/flake8@v2