@@ -15,76 +15,76 @@ jobs:
1515 runs-on : ubuntu-latest
1616
1717 steps :
18- - name : Checkout
19- uses : actions/checkout@v4
20-
21- - name : Base Setup
22- uses : jupyterlab/maintainer-tools/.github/actions/base-setup@v1
23-
24- - name : Install dependencies
25- run : python -m pip install -U "jupyterlab>=4.0.0,<5"
26-
27- - name : Lint the extension
28- run : |
29- set -eux
30- jlpm
31- jlpm run lint:check
32-
33- - name : Test the extension
34- run : |
35- set -eux
36- jlpm run test
37-
38- - name : Build the extension
39- run : |
40- set -eux
41- python -m pip install .[test]
42-
43- jupyter labextension list
44- jupyter labextension list 2>&1 | grep -ie "mcp-client-jupyter-chat.*OK"
45- python -m jupyterlab.browser_check
46-
47- - name : Package the extension
48- run : |
49- set -eux
50-
51- pip install build
52- python -m build
53- pip uninstall -y "mcp_client_jupyter_chat" jupyterlab
54-
55- - name : Upload extension packages
56- uses : actions/upload-artifact@v4
57- with :
58- name : extension-artifacts
59- path : dist/mcp_client_jupyter_chat*
60- if-no-files-found : error
18+ - name : Checkout
19+ uses : actions/checkout@v4
20+
21+ - name : Base Setup
22+ uses : jupyterlab/maintainer-tools/.github/actions/base-setup@v1
23+
24+ - name : Install dependencies
25+ run : python -m pip install -U "jupyterlab>=4.0.0,<5"
26+
27+ - name : Lint the extension
28+ run : |
29+ set -eux
30+ jlpm
31+ jlpm run lint:check
32+
33+ - name : Test the extension
34+ run : |
35+ set -eux
36+ jlpm run test
37+
38+ - name : Build the extension
39+ run : |
40+ set -eux
41+ python -m pip install .[test]
42+
43+ jupyter labextension list
44+ jupyter labextension list 2>&1 | grep -ie "mcp-client-jupyter-chat.*OK"
45+ python -m jupyterlab.browser_check
46+
47+ - name : Package the extension
48+ run : |
49+ set -eux
50+
51+ pip install build
52+ python -m build
53+ pip uninstall -y "mcp_client_jupyter_chat" jupyterlab
54+
55+ - name : Upload extension packages
56+ uses : actions/upload-artifact@v4
57+ with :
58+ name : extension-artifacts
59+ path : dist/mcp_client_jupyter_chat*
60+ if-no-files-found : error
6161
6262 test_isolated :
6363 needs : build
6464 runs-on : ubuntu-latest
6565
6666 steps :
67- - name : Install Python
68- uses : actions/setup-python@v5
69- with :
70- python-version : ' 3.9'
71- architecture : ' x64'
72- - uses : actions/download-artifact@v4
73- with :
74- name : extension-artifacts
75- - name : Install and Test
76- run : |
77- set -eux
78- # Remove NodeJS, twice to take care of system and locally installed node versions.
79- sudo rm -rf $(which node)
80- sudo rm -rf $(which node)
81-
82- pip install "jupyterlab>=4.0.0,<5" mcp_client_jupyter_chat*.whl
83-
84-
85- jupyter labextension list
86- jupyter labextension list 2>&1 | grep -ie "mcp-client-jupyter-chat.*OK"
87- python -m jupyterlab.browser_check --no-browser-test
67+ - name : Install Python
68+ uses : actions/setup-python@v5
69+ with :
70+ python-version : ' 3.9'
71+ architecture : ' x64'
72+ - uses : actions/download-artifact@v4
73+ with :
74+ name : extension-artifacts
75+ - name : Install and Test
76+ run : |
77+ set -eux
78+ # Remove NodeJS, twice to take care of system and locally installed node versions.
79+ sudo rm -rf $(which node)
80+ sudo rm -rf $(which node)
81+
82+ pip install "jupyterlab>=4.0.0,<5" mcp_client_jupyter_chat*.whl
83+
84+
85+ jupyter labextension list
86+ jupyter labextension list 2>&1 | grep -ie "mcp-client-jupyter-chat.*OK"
87+ python -m jupyterlab.browser_check --no-browser-test
8888
8989 integration-tests :
9090 name : Integration tests
@@ -95,59 +95,50 @@ jobs:
9595 PLAYWRIGHT_BROWSERS_PATH : ${{ github.workspace }}/pw-browsers
9696
9797 steps :
98- - name : Checkout
99- uses : actions/checkout@v4
100-
101- - name : Base Setup
102- uses : jupyterlab/maintainer-tools/.github/actions/base-setup@v1
103-
104- - name : Download extension package
105- uses : actions/download-artifact@v4
106- with :
107- name : extension-artifacts
108-
109- - name : Install the extension
110- run : |
111- set -eux
112- python -m pip install "jupyterlab>=4.0.0,<5" mcp_client_jupyter_chat*.whl
113-
114- - name : Install dependencies
115- working-directory : ui-tests
116- env :
117- YARN_ENABLE_IMMUTABLE_INSTALLS : 0
118- PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD : 1
119- run : jlpm install
120-
121- - name : Set up browser cache
122- uses : actions/cache@v4
123- with :
124- path : |
125- ${{ github.workspace }}/pw-browsers
126- key : ${{ runner.os }}-${{ hashFiles('ui-tests/yarn.lock') }}
127-
128- - name : Install browser
129- run : jlpm playwright install chromium
130- working-directory : ui-tests
131-
132- - name : Execute integration tests
133- working-directory : ui-tests
134- run : |
135- jlpm playwright test
136-
137- - name : Upload Playwright Test report
138- if : always()
139- uses : actions/upload-artifact@v4
140- with :
141- name : mcp_client_jupyter_chat-playwright-tests
142- path : |
143- ui-tests/test-results
144- ui-tests/playwright-report
145-
146- check_links :
147- name : Check Links
148- runs-on : ubuntu-latest
149- timeout-minutes : 15
150- steps :
151- - uses : actions/checkout@v4
152- - uses : jupyterlab/maintainer-tools/.github/actions/base-setup@v1
153- - uses : jupyterlab/maintainer-tools/.github/actions/check-links@v1
98+ - name : Checkout
99+ uses : actions/checkout@v4
100+
101+ - name : Base Setup
102+ uses : jupyterlab/maintainer-tools/.github/actions/base-setup@v1
103+
104+ - name : Download extension package
105+ uses : actions/download-artifact@v4
106+ with :
107+ name : extension-artifacts
108+
109+ - name : Install the extension
110+ run : |
111+ set -eux
112+ python -m pip install "jupyterlab>=4.0.0,<5" mcp_client_jupyter_chat*.whl
113+
114+ - name : Install dependencies
115+ working-directory : ui-tests
116+ env :
117+ YARN_ENABLE_IMMUTABLE_INSTALLS : 0
118+ PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD : 1
119+ run : jlpm install
120+
121+ - name : Set up browser cache
122+ uses : actions/cache@v4
123+ with :
124+ path : |
125+ ${{ github.workspace }}/pw-browsers
126+ key : ${{ runner.os }}-${{ hashFiles('ui-tests/yarn.lock') }}
127+
128+ - name : Install browser
129+ run : jlpm playwright install chromium
130+ working-directory : ui-tests
131+
132+ - name : Execute integration tests
133+ working-directory : ui-tests
134+ run : |
135+ jlpm playwright test
136+
137+ - name : Upload Playwright Test report
138+ if : always()
139+ uses : actions/upload-artifact@v4
140+ with :
141+ name : mcp_client_jupyter_chat-playwright-tests
142+ path : |
143+ ui-tests/test-results
144+ ui-tests/playwright-report
0 commit comments