Typo #12
This file contains hidden or 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
| 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" . |