Skip to content

Commit dcfd103

Browse files
author
Steven Silvester
authored
Merge pull request #676 from afshin/releaser
Prepare for use with Jupyter Releaser
2 parents 920d9e1 + 52828f0 commit dcfd103

18 files changed

+631
-484
lines changed

.github/workflows/check-release.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: Check Release
2+
on:
3+
push:
4+
branches: ["master"]
5+
pull_request:
6+
branches: ["*"]
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
check_release:
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
group: [check_release, link_check]
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v2
20+
- name: Install Python
21+
uses: actions/setup-python@v2
22+
with:
23+
python-version: 3.9
24+
architecture: "x64"
25+
- name: Install node
26+
uses: actions/setup-node@v2
27+
with:
28+
node-version: "14.x"
29+
- name: Get pip cache dir
30+
id: pip-cache
31+
run: |
32+
echo "::set-output name=dir::$(pip cache dir)"
33+
- name: Cache pip
34+
uses: actions/cache@v1
35+
with:
36+
path: ${{ steps.pip-cache.outputs.dir }}
37+
key: ${{ runner.os }}-pip-${{ hashFiles('setup.cfg') }}
38+
restore-keys: |
39+
${{ runner.os }}-pip-
40+
${{ runner.os }}-pip-
41+
- name: Cache checked links
42+
if: ${{ matrix.group == 'link_check' }}
43+
uses: actions/cache@v2
44+
with:
45+
path: ~/.cache/pytest-link-check
46+
key: ${{ runner.os }}-linkcheck-${{ hashFiles('**/*.md', '**/*.rst') }}-md-links
47+
restore-keys: |
48+
${{ runner.os }}-linkcheck-
49+
- name: Upgrade packaging dependencies
50+
run: |
51+
pip install --upgrade pip setuptools wheel --user
52+
- name: Install Dependencies
53+
run: |
54+
pip install -e .
55+
- name: Check Release
56+
if: ${{ matrix.group == 'check_release' }}
57+
uses: jupyter-server/jupyter_releaser/.github/actions/check-release@v1
58+
with:
59+
token: ${{ secrets.GITHUB_TOKEN }}
60+
- name: Check Links
61+
if: ${{ matrix.group == 'link_check' }}
62+
uses: jupyter-server/jupyter_releaser/.github/actions/check-links@v1

.github/workflows/main.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,5 +117,11 @@ jobs:
117117
- name: Run the tests
118118
run: pytest --cov jupyter_client -v jupyter_client
119119

120+
- name: Build the docs
121+
run: |
122+
pip install -r requirements-doc.txt
123+
cd docs
124+
make html
125+
120126
- name: Code coverage
121127
run: codecov

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ __pycache__
1515
.cache
1616
absolute.json
1717
htmlcov/
18+
docs/changelog.md
1819
.mypy_cache
1920

2021
# Sphinx documentation

0 commit comments

Comments
 (0)