Skip to content

Commit d30b297

Browse files
committed
Maintenance fixes
1 parent 9a2d928 commit d30b297

File tree

3 files changed

+44
-42
lines changed

3 files changed

+44
-42
lines changed

.github/dependabot.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ updates:
33
- package-ecosystem: "github-actions"
44
directory: "/"
55
schedule:
6-
interval: "weekly"
6+
interval: "monthly"
77
- package-ecosystem: "pip"
88
directory: "/"
99
schedule:
10-
interval: "weekly"
10+
interval: "monthly"

.github/workflows/build.yml

Lines changed: 40 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -18,45 +18,46 @@ jobs:
1818
fail-fast: false
1919
matrix:
2020
os: [ubuntu-latest, macos-latest, windows-latest]
21-
python-version: [ '3.8', '3.9', '3.10', "3.11" ]
21+
python-version: ["3.8", "3.12"]
2222

2323
steps:
24-
- name: Checkout
25-
uses: actions/checkout@v2
24+
- name: Checkout
25+
uses: actions/checkout@v4
2626

27-
- name: Base Setup
28-
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
27+
- name: Base Setup
28+
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
2929

30-
- name: Install dependencies
31-
run: python -m pip install -U jupyter_server
30+
- name: Install dependencies
31+
run: python -m pip install -U jupyter_server
3232

33-
- name: Build the extension
34-
run: |
35-
python -m pip install .
36-
jupyter server extension list 2>&1 | grep -ie "jupyter_server_nbmodel.*OK"
33+
- name: Build the extension
34+
run: |
35+
python -m pip install .
36+
jupyter server extension list 2>&1 | grep -ie "jupyter_server_nbmodel.*OK"
3737
38-
pip install build
39-
python -m build --sdist
40-
cp dist/*.tar.gz my_server_extension.tar.gz
41-
pip uninstall -y "jupyter_server_nbmodel" jupyter_server
42-
rm -rf "jupyter_server_nbmodel"
38+
pip install build
39+
python -m build --sdist
40+
cp dist/*.tar.gz my_server_extension.tar.gz
41+
pip uninstall -y "jupyter_server_nbmodel" jupyter_server
42+
rm -rf "jupyter_server_nbmodel"
4343
44-
- uses: actions/upload-artifact@v2
45-
with:
46-
name: my_server_extension-sdist
47-
path: my_server_extension.tar.gz
44+
- uses: actions/upload-artifact@v4
45+
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.12'
46+
with:
47+
name: my_server_extension-sdist
48+
path: my_server_extension.tar.gz
4849

4950
check_links:
5051
runs-on: ubuntu-latest
5152
steps:
52-
- uses: actions/checkout@v2
53+
- uses: actions/checkout@v4
5354
- uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
5455
- uses: jupyterlab/maintainer-tools/.github/actions/check-links@v1
5556

5657
test_lint:
5758
runs-on: ubuntu-latest
5859
steps:
59-
- uses: actions/checkout@v2
60+
- uses: actions/checkout@v4
6061
- uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
6162
- name: Run Linters
6263
run: |
@@ -65,7 +66,7 @@ jobs:
6566
check_release:
6667
runs-on: ubuntu-latest
6768
steps:
68-
- uses: actions/checkout@v2
69+
- uses: actions/checkout@v4
6970
- name: Base Setup
7071
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
7172
- name: Install Dependencies
@@ -76,7 +77,7 @@ jobs:
7677
with:
7778
token: ${{ secrets.GITHUB_TOKEN }}
7879
- name: Upload Distributions
79-
uses: actions/upload-artifact@v2
80+
uses: actions/upload-artifact@v4
8081
with:
8182
name: jupyter_server_nbmodel-releaser-dist-${{ github.run_number }}
8283
path: .jupyter_releaser_checkout/dist
@@ -86,18 +87,18 @@ jobs:
8687
runs-on: ubuntu-latest
8788

8889
steps:
89-
- name: Checkout
90-
uses: actions/checkout@v2
91-
- name: Install Python
92-
uses: actions/setup-python@v2
93-
with:
94-
python-version: '3.8'
95-
architecture: 'x64'
96-
- uses: actions/download-artifact@v2
97-
with:
98-
name: my_server_extension-sdist
99-
- name: Install and Test
100-
run: |
101-
pip install my_server_extension.tar.gz
102-
pip install jupyter_server
103-
jupyter server extension list 2>&1 | grep -ie "jupyter_server_nbmodel.*OK"
90+
- name: Checkout
91+
uses: actions/checkout@v4
92+
- name: Install Python
93+
uses: actions/setup-python@v5
94+
with:
95+
python-version: "3.8"
96+
architecture: "x64"
97+
- uses: actions/download-artifact@v4
98+
with:
99+
name: my_server_extension-sdist
100+
- name: Install and Test
101+
run: |
102+
pip install my_server_extension.tar.gz
103+
pip install jupyter_server
104+
jupyter server extension list 2>&1 | grep -ie "jupyter_server_nbmodel.*OK"

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# jupyter_server_nbmodel
22

3-
[![Github Actions Status](https://github.com/datalayer/jupyter-server-nbmodel/workflows/Build/badge.svg)](https://github.com/datalayer/jupyter-server-nbmodel/actions/workflows/build.yml)[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/datalayer/jupyter-server-nbmodel/main
3+
[![Github Actions Status](https://github.com/datalayer/jupyter-server-nbmodel/workflows/Build/badge.svg)](https://github.com/datalayer/jupyter-server-nbmodel/actions/workflows/build.yml)
4+
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/datalayer/jupyter-server-nbmodel/main)
45

56
A Jupyter Server extension to execute code cell from the server.
67

0 commit comments

Comments
 (0)