From e392f17fcfc0ef7062936b852a8aa429692adfe3 Mon Sep 17 00:00:00 2001 From: Arseniy Obolenskiy Date: Sun, 20 Jul 2025 13:39:27 +0200 Subject: [PATCH] [CI] Remove python checks from python-lint.yml Duplicated with pre-commit.yml --- .github/workflows/main.yml | 10 ++++----- .github/workflows/python-lint.yml | 37 ------------------------------- .github/workflows/shell-lint.yml | 24 ++++++++++++++++++++ 3 files changed, 29 insertions(+), 42 deletions(-) delete mode 100644 .github/workflows/python-lint.yml create mode 100644 .github/workflows/shell-lint.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0617a84cd..6fd68e5e9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,22 +18,22 @@ concurrency: jobs: cpp-lint: uses: ./.github/workflows/cpp-lint.yml - python-lint: - uses: ./.github/workflows/python-lint.yml + shell-lint: + uses: ./.github/workflows/shell-lint.yml ubuntu: needs: - cpp-lint - - python-lint + - shell-lint uses: ./.github/workflows/ubuntu.yml mac: needs: - cpp-lint - - python-lint + - shell-lint uses: ./.github/workflows/mac.yml windows: needs: - cpp-lint - - python-lint + - shell-lint uses: ./.github/workflows/windows.yml perf: needs: diff --git a/.github/workflows/python-lint.yml b/.github/workflows/python-lint.yml deleted file mode 100644 index 1411b2c9e..000000000 --- a/.github/workflows/python-lint.yml +++ /dev/null @@ -1,37 +0,0 @@ -name: Python Lint - -on: - workflow_call: - push: - paths: - - '**/*.py' - - '**/*.sh' - - 'setup.cfg' - - '.github/workflows/python-lint.yml' - pull_request: - paths: - - '**/*.py' - - '**/*.sh' - - 'setup.cfg' - - '.github/workflows/python-lint.yml' - -jobs: - python-lint: - runs-on: ubuntu-24.04 - steps: - - uses: actions/checkout@v4 - - name: Install flake8 - run: python3 -m pip install flake8 - - name: Run flake8 - run: python3 -m flake8 . - - shell-lint: - runs-on: ubuntu-24.04 - steps: - - uses: actions/checkout@v4 - - name: Install shellcheck - run: | - sudo apt-get update - sudo apt-get install -y shellcheck - - name: Run shellcheck - run: shellcheck scripts/*.sh diff --git a/.github/workflows/shell-lint.yml b/.github/workflows/shell-lint.yml new file mode 100644 index 000000000..b42179797 --- /dev/null +++ b/.github/workflows/shell-lint.yml @@ -0,0 +1,24 @@ +name: Shell Lint + +on: + workflow_call: + push: + paths: + - '**/*.sh' + - '.github/workflows/shell-lint.yml' + pull_request: + paths: + - '**/*.sh' + - '.github/workflows/shell-lint.yml' + +jobs: + shell-lint: + runs-on: ubuntu-24.04 + steps: + - uses: actions/checkout@v4 + - name: Install shellcheck + run: | + sudo apt-get update + sudo apt-get install -y shellcheck + - name: Run shellcheck + run: shellcheck scripts/*.sh