Skip to content

Commit ecd675f

Browse files
committed
ci: Add a simple GH action to run spelling tools on our code
This uses codespell and spellintian.
1 parent f9eb41d commit ecd675f

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/spelling.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Check spelling using codespell and spellintian
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
8+
jobs:
9+
build:
10+
name: spelling
11+
runs-on: ubuntu-24.04
12+
env:
13+
CI_CONTAINER: libblockdev-ci-spelling
14+
steps:
15+
- name: Checkout libblockdev repository
16+
uses: actions/checkout@v4
17+
with:
18+
path: libblockdev
19+
20+
- name: Install codespell and lintian
21+
run: |
22+
sudo apt -qq update
23+
sudo apt -y -qq install codespell lintian
24+
25+
- name: Get the storaged-project/ci repository
26+
uses: actions/checkout@v4
27+
with:
28+
repository: storaged-project/ci
29+
path: ci
30+
31+
- name: Run the checks
32+
run: |
33+
python3 ../ci/run_spell_checks -p libblockdev -i gir
34+
working-directory: ./libblockdev

0 commit comments

Comments
 (0)