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