Skip to content

Commit ee57d95

Browse files
author
Steven Silvester
authored
use check links (#201)
1 parent d363d02 commit ee57d95

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

.github/workflows/tests.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: Tests
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches: 'master'
6+
pull_request:
7+
branches: '*'
48

59
defaults:
610
run:
@@ -75,6 +79,9 @@ jobs:
7579
7680
check_release:
7781
runs-on: ubuntu-latest
82+
strategy:
83+
matrix:
84+
group: [check_release, link_check]
7885
steps:
7986
- name: Checkout
8087
uses: actions/checkout@v2
@@ -96,6 +103,7 @@ jobs:
96103
${{ runner.os }}-pip-
97104
${{ runner.os }}-pip-
98105
- name: Cache checked links
106+
if: ${{ matrix.group == 'link_check' }}
99107
uses: actions/cache@v2
100108
with:
101109
path: ~/.cache/pytest-link-check
@@ -109,6 +117,10 @@ jobs:
109117
run: |
110118
pip install -e .
111119
- name: Check Release
120+
if: ${{ matrix.group == 'check_release' }}
112121
uses: jupyter-server/jupyter_releaser/.github/actions/check-release@v1
113122
with:
114123
token: ${{ secrets.GITHUB_TOKEN }}
124+
- name: Run Link Check
125+
if: ${{ matrix.group == 'link_check' }}
126+
uses: jupyter-server/jupyter_releaser/.github/actions/check-links@v1

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
requires = ["jupyter_packaging~=0.9,<2", "jupyter_server"]
33
build-backend = "setuptools.build_meta"
44

5+
[tool.jupyter-releaser]
6+
skip = ["check-links"]
7+
58
[tool.check-manifest]
69
ignore = ["tbump.toml", ".*", "*.yml", "docs/source/api/app-config.rst", "docs/source/changelog.md"]
710
ignore-bad-ideas = ["jupyterlab_server/tests/translations/**/*.mo"]

0 commit comments

Comments
 (0)