|
|
|
|
@ -12,6 +12,9 @@ permissions:
|
|
|
|
|
jobs:
|
|
|
|
|
check_release:
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
strategy:
|
|
|
|
|
matrix:
|
|
|
|
|
group: [check_release, link_check]
|
|
|
|
|
steps:
|
|
|
|
|
- name: Checkout
|
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
@ -37,10 +40,11 @@ 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
|
|
|
|
|
key: ${{ runner.os }}-linkcheck-${{ hashFiles('**/.md') }}-md-links
|
|
|
|
|
key: ${{ runner.os }}-linkcheck-${{ hashFiles('**/*.md', '**/*.rst') }}-md-links
|
|
|
|
|
restore-keys: |
|
|
|
|
|
${{ runner.os }}-linkcheck-
|
|
|
|
|
- name: Upgrade packaging dependencies
|
|
|
|
|
@ -50,8 +54,12 @@ jobs:
|
|
|
|
|
run: |
|
|
|
|
|
pip install -e .
|
|
|
|
|
- name: Check Release
|
|
|
|
|
if: ${{ matrix.group == 'check_release' }}
|
|
|
|
|
env:
|
|
|
|
|
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_TOKEN }}
|
|
|
|
|
uses: jupyter-server/jupyter_releaser/.github/actions/check-release@v1
|
|
|
|
|
with:
|
|
|
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
- name: Check Links
|
|
|
|
|
if: ${{ matrix.group == 'link_check' }}
|
|
|
|
|
uses: jupyter-server/jupyter_releaser/.github/actions/check-links@v1
|
|
|
|
|
|