diff options
author | Waylan Limberg <waylan.limberg@icloud.com> | 2022-05-05 14:01:49 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-05 14:01:49 -0400 |
commit | 21ba00c230e41a1de90b4f7608e5133e254ba109 (patch) | |
tree | ede21b27b3f7767639a04d3be8765c03ecb727d7 /.github/workflows | |
parent | ce73b2754fb754c29d719c9980ae2f4aa4912f4d (diff) | |
download | python-markdown-21ba00c230e41a1de90b4f7608e5133e254ba109.tar.gz |
Add markdown-link-check github action.
Replaces CLI action run through tox.
Closes #1243.
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/process.yml | 11 | ||||
-rw-r--r-- | .github/workflows/tox.yml | 12 |
2 files changed, 12 insertions, 11 deletions
diff --git a/.github/workflows/process.yml b/.github/workflows/process.yml index 6e3ac51..d6d4c94 100644 --- a/.github/workflows/process.yml +++ b/.github/workflows/process.yml @@ -22,3 +22,14 @@ jobs: change log describing the changes you have made. Doing so will help to ensure your contribution is accepted. Please see the [Contributing Guide](https://python-markdown.github.io/contributing/#pull-requests) for details. + + markdown-link-check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: gaurav-nelson/github-action-markdown-link-check@v1 + with: + use-quiet-mode: yes + use-verbose-mode: yes + check-modified-files-only: yes + base-branch: master diff --git a/.github/workflows/tox.yml b/.github/workflows/tox.yml index 18306f7..08cbb49 100644 --- a/.github/workflows/tox.yml +++ b/.github/workflows/tox.yml @@ -67,30 +67,20 @@ jobs: fail-fast: false max-parallel: 4 matrix: - tox-env: [flake8, pep517check, checkspelling, checklinks] + tox-env: [flake8, pep517check, checkspelling] env: TOXENV: ${{ matrix.tox-env }} - # Allow checklinks to fail - continue-on-error: ${{ matrix.tox-env == 'checklinks' }} - steps: - uses: actions/checkout@v2 - name: Setup Python uses: actions/setup-python@v2 with: python-version: 3.7 - - name: Setup Node - if: ${{ matrix.tox-env == 'checklinks' }} - uses: actions/setup-node@v2 - with: - node-version: '10' - # cache: npm - name: Install dependencies run: | python -m pip install --upgrade pip tox - if [[ "$TOXENV" == 'checklinks' ]]; then npm install -g markdown-link-check; fi if [[ "$TOXENV" == 'checkspelling' ]]; then sudo apt-get install aspell aspell-en; fi - name: Run tox run: python -m tox |