-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (38 loc) · 955 Bytes
/
spelling.yml
File metadata and controls
42 lines (38 loc) · 955 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Check spelling
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
spellcheck:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
strategy:
matrix:
python-version: [3.9]
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v3
- name: Installing requirements
run: |
conda env create -f environment.yml
- name: Spellchecking notebooks
run: |
conda activate introduction_gwosc_data
for file in *.ipynb; do
echo "Checking ${file}";
if ! ./tests/check_spelling.sh "${file}"; then
echo "::error file=${file},title=Error";
exit 1;
fi
done
- name: Spellchecking other files
run: |
conda activate introduction_gwosc_data
codespell -I .dictionary.txt --skip="*.ipynb" .