Skip to content

Commit

Permalink
use check links (#201)
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Silvester authored Aug 18, 2021
1 parent d363d02 commit ee57d95
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Tests

on: [push, pull_request]
on:
push:
branches: 'master'
pull_request:
branches: '*'

defaults:
run:
Expand Down Expand Up @@ -75,6 +79,9 @@ jobs:
check_release:
runs-on: ubuntu-latest
strategy:
matrix:
group: [check_release, link_check]
steps:
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -96,6 +103,7 @@ jobs:
${{ runner.os }}-pip-
${{ runner.os }}-pip-
- name: Cache checked links
if: ${{ matrix.group == 'link_check' }}
uses: actions/cache@v2
with:
path: ~/.cache/pytest-link-check
Expand All @@ -109,6 +117,10 @@ jobs:
run: |
pip install -e .
- name: Check Release
if: ${{ matrix.group == 'check_release' }}
uses: jupyter-server/jupyter_releaser/.github/actions/check-release@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Run Link Check
if: ${{ matrix.group == 'link_check' }}
uses: jupyter-server/jupyter_releaser/.github/actions/check-links@v1
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
requires = ["jupyter_packaging~=0.9,<2", "jupyter_server"]
build-backend = "setuptools.build_meta"

[tool.jupyter-releaser]
skip = ["check-links"]

[tool.check-manifest]
ignore = ["tbump.toml", ".*", "*.yml", "docs/source/api/app-config.rst", "docs/source/changelog.md"]
ignore-bad-ideas = ["jupyterlab_server/tests/translations/**/*.mo"]
Expand Down

0 comments on commit ee57d95

Please sign in to comment.