added documentation on testing #347
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
name: Spelling | |
on: | |
push: | |
branches: | |
- main | |
release: | |
types: [published] | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
spell: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Python | |
uses: actions/setup-python@v1 | |
with: | |
python-version: '3.7' | |
architecture: 'x64' | |
- name: Install dependencies | |
run: | | |
python3 -m pip install --upgrade pip setuptools | |
python3 -m pip install -r requirements.txt | |
- name: Install Aspell | |
run: | | |
sudo apt-get install aspell aspell-en | |
- name: Install Hunspell | |
run: | | |
sudo apt-get install hunspell hunspell-en-gb | |
- name: codespell | |
run: | | |
codespell docs | |
- name: pyspelling | |
run: | | |
pyspelling || true |