summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaylan Limberg <waylan.limberg@icloud.com>2022-05-05 14:01:49 -0400
committerGitHub <noreply@github.com>2022-05-05 14:01:49 -0400
commit21ba00c230e41a1de90b4f7608e5133e254ba109 (patch)
treeede21b27b3f7767639a04d3be8765c03ecb727d7
parentce73b2754fb754c29d719c9980ae2f4aa4912f4d (diff)
downloadpython-markdown-21ba00c230e41a1de90b4f7608e5133e254ba109.tar.gz
Add markdown-link-check github action.
Replaces CLI action run through tox. Closes #1243.
-rw-r--r--.github/workflows/process.yml11
-rw-r--r--.github/workflows/tox.yml12
-rw-r--r--README.md1
3 files changed, 12 insertions, 12 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
diff --git a/README.md b/README.md
index 38d416a..7b979b0 100644
--- a/README.md
+++ b/README.md
@@ -62,4 +62,3 @@ Code of Conduct
Everyone interacting in the Python-Markdown project's codebases, issue trackers,
and mailing lists is expected to follow the [Code of Conduct].
-