Skip to content

Commit 77582f3

Browse files
[CI] Merge spell check with code style check into a single job
1 parent d741ab3 commit 77582f3

File tree

3 files changed

+13
-31
lines changed

3 files changed

+13
-31
lines changed

.github/workflows/pr_push.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,13 @@ permissions:
1616
contents: read
1717

1818
jobs:
19-
CodeStyle:
20-
uses: ./.github/workflows/reusable_code_style.yml
19+
CodeCheck:
20+
uses: ./.github/workflows/reusable_checks.yml
2121
DocsBuild:
2222
uses: ./.github/workflows/reusable_docs_build.yml
23-
Spellcheck:
24-
uses: ./.github/workflows/reusable_spellcheck.yml
2523
FastBuild:
2624
name: Fast builds
27-
needs: [Spellcheck, CodeStyle]
25+
needs: [CodeCheck, DocsBuild]
2826
uses: ./.github/workflows/reusable_fast.yml
2927
Build:
3028
name: Basic builds

.github/workflows/reusable_code_style.yml renamed to .github/workflows/reusable_checks.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1-
name: Code Style
1+
# Basic checks on the code, incl. coding style and spelling.
2+
# TODO: add license check
3+
name: Basic checks
24

35
on: workflow_call
46

57
permissions:
68
contents: read
79

810
jobs:
9-
CodeStyle:
10-
name: Coding style
11+
CodeCheck:
12+
name: Coding style and spell check
1113
runs-on: ${{ github.repository_owner == 'oneapi-src' && 'intel-ubuntu-22.04' || 'ubuntu-latest' }}
1214

1315
steps:
@@ -41,3 +43,8 @@ jobs:
4143
4244
- name: Check Python formatting
4345
run: cmake --build build --target black-format-check
46+
47+
- name: Run a spell check
48+
uses: crate-ci/typos@b63f421581dce830bda2f597a678cb7776b41877 # v1.18.2
49+
with:
50+
config: ./.github/workflows/.spellcheck-conf.toml

.github/workflows/reusable_spellcheck.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)