From 0460d7e00a580303bd1fc980519da7d10bcdc8ae Mon Sep 17 00:00:00 2001 From: David Buchmann Date: Sat, 18 Sep 2021 15:27:43 +0200 Subject: [PATCH] use github action from spelling module --- .github/workflows/spellcheck.yml | 36 +++++++++++++++++++------------- 1 file changed, 21 insertions(+), 15 deletions(-) diff --git a/.github/workflows/spellcheck.yml b/.github/workflows/spellcheck.yml index 463d83f..356d84a 100644 --- a/.github/workflows/spellcheck.yml +++ b/.github/workflows/spellcheck.yml @@ -1,26 +1,32 @@ name: spellcheck -on: [push] +on: + - push + - pull_request jobs: build: - runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + tox-environment: + - docs + - linter + - pkglint + - spelling + steps: - uses: actions/checkout@v2 - - name: Set up Python - uses: actions/setup-python@v1 with: - python-version: 3.7 + fetch-depth: 0 + + - name: Set up Python + uses: actions/setup-python@v2 + - name: Install dependencies - run: | - sudo apt update && sudo apt install -y enchant - python -m pip install --upgrade setuptools - python -m pip install --upgrade pyenchant sphinx-rtd-theme sphinxcontrib-spelling - - name: Check spelling - # show list of misspelled words - run: | - make spelling - if [[ -s "_build/spelling/output.txt" ]]; then cat "_build/spelling/output.txt"; fi - if [[ -s "_build/spelling/output.txt" ]]; then false; fi + run: python -m pip install tox + + - name: Run + run: tox -e ${{ matrix.tox-environment }}