Skip to content

Commit 21ba00c

Browse files
authored
Add markdown-link-check github action.
Replaces CLI action run through tox. Closes Python-Markdown#1243.
1 parent ce73b27 commit 21ba00c

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

.github/workflows/process.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,14 @@ jobs:
2222
change log describing the changes you have made. Doing so will help to ensure your contribution is accepted.
2323
2424
Please see the [Contributing Guide](https://python-markdown.github.io/contributing/#pull-requests) for details.
25+
26+
markdown-link-check:
27+
runs-on: ubuntu-latest
28+
steps:
29+
- uses: actions/checkout@v2
30+
- uses: gaurav-nelson/github-action-markdown-link-check@v1
31+
with:
32+
use-quiet-mode: yes
33+
use-verbose-mode: yes
34+
check-modified-files-only: yes
35+
base-branch: master

.github/workflows/tox.yml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -67,30 +67,20 @@ jobs:
6767
fail-fast: false
6868
max-parallel: 4
6969
matrix:
70-
tox-env: [flake8, pep517check, checkspelling, checklinks]
70+
tox-env: [flake8, pep517check, checkspelling]
7171

7272
env:
7373
TOXENV: ${{ matrix.tox-env }}
7474

75-
# Allow checklinks to fail
76-
continue-on-error: ${{ matrix.tox-env == 'checklinks' }}
77-
7875
steps:
7976
- uses: actions/checkout@v2
8077
- name: Setup Python
8178
uses: actions/setup-python@v2
8279
with:
8380
python-version: 3.7
84-
- name: Setup Node
85-
if: ${{ matrix.tox-env == 'checklinks' }}
86-
uses: actions/setup-node@v2
87-
with:
88-
node-version: '10'
89-
# cache: npm
9081
- name: Install dependencies
9182
run: |
9283
python -m pip install --upgrade pip tox
93-
if [[ "$TOXENV" == 'checklinks' ]]; then npm install -g markdown-link-check; fi
9484
if [[ "$TOXENV" == 'checkspelling' ]]; then sudo apt-get install aspell aspell-en; fi
9585
- name: Run tox
9686
run: python -m tox

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,3 @@ Code of Conduct
6262

6363
Everyone interacting in the Python-Markdown project's codebases, issue trackers,
6464
and mailing lists is expected to follow the [Code of Conduct].
65-

0 commit comments

Comments
 (0)