diff --git a/.github/workflows/clang-format-linter.yml b/.github/workflows/clang-format-linter.yml deleted file mode 100644 index 69166d961..000000000 --- a/.github/workflows/clang-format-linter.yml +++ /dev/null @@ -1,13 +0,0 @@ -name: clang-format linter - -on: [push,pull_request] - -jobs: - lint: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v1 - with: - fetch-depth: 1 - - uses: InsightSoftwareConsortium/ITKClangFormatLinterAction@master diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 000000000..c7b77db93 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,29 @@ +name: Lint + +on: [push,pull_request] + +jobs: + lint: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v1 + with: + fetch-depth: 1 + + - name: Lint C++ + uses: InsightSoftwareConsortium/ITKClangFormatLinterAction@master + + - name: Set up Python + uses: actions/setup-python@v1 + with: + python-version: 3.9 + + - name: Install Python dependencies + run: pip install black + + - name: Lint Python + uses: wearerequired/lint-action@v1 + with: + black: true + black_dir: src/