-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Add a simple GH action to run spelling tools on our code
This uses codespell and spellintian.
- Loading branch information
1 parent
f9eb41d
commit ecd675f
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Check spelling using codespell and spellintian | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
name: spelling | ||
runs-on: ubuntu-24.04 | ||
env: | ||
CI_CONTAINER: libblockdev-ci-spelling | ||
steps: | ||
- name: Checkout libblockdev repository | ||
uses: actions/checkout@v4 | ||
with: | ||
path: libblockdev | ||
|
||
- name: Install codespell and lintian | ||
run: | | ||
sudo apt -qq update | ||
sudo apt -y -qq install codespell lintian | ||
- name: Get the storaged-project/ci repository | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: storaged-project/ci | ||
path: ci | ||
|
||
- name: Run the checks | ||
run: | | ||
python3 ../ci/run_spell_checks -p libblockdev -i gir | ||
working-directory: ./libblockdev |