Skip to content

Commit b0871a5

Browse files
[CI] Merge spell check with code style check into a single job
1 parent 58a759b commit b0871a5

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
@@ -15,15 +15,13 @@ permissions:
1515
contents: read
1616

1717
jobs:
18-
CodeStyle:
19-
uses: ./.github/workflows/reusable_code_style.yml
18+
CodeCheck:
19+
uses: ./.github/workflows/reusable_checks.yml
2020
DocsBuild:
2121
uses: ./.github/workflows/reusable_docs_build.yml
22-
Spellcheck:
23-
uses: ./.github/workflows/reusable_spellcheck.yml
2422
FastBuild:
2523
name: Fast builds
26-
needs: [Spellcheck, CodeStyle]
24+
needs: [CodeCheck, DocsBuild]
2725
uses: ./.github/workflows/reusable_fast.yml
2826
Build:
2927
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)