11name : Build
22
3+ # suppress warning raised by https://github.com/jupyter/jupyter_core/pull/292
4+ env :
5+ JUPYTER_PLATFORM_DIRS : ' 1'
6+
37on :
48 push :
59 branches : main
@@ -11,85 +15,85 @@ jobs:
1115 runs-on : ubuntu-latest
1216
1317 steps :
14- - name : Checkout
15- uses : actions/checkout@v2
16-
17- - name : Base Setup
18- uses : jupyterlab/maintainer-tools/.github/actions/base-setup@v1
19-
20- - name : Install dependencies
21- run : python -m pip install -U jupyterlab~=3.1
22-
23- - name : Lint the extension
24- run : |
25- set -eux
26- jlpm
27-
28- - name : Test the extension
29- run : |
30- set -eux
31- jlpm run test
32- python -m pip install .[test]
33- pytest -vv -r ap --cov jupyter_scheduler
34-
35- - name : Build the extension
36- run : |
37- set -eux
38- python -m pip install .
39-
40- jupyter server extension list
41- jupyter server extension list 2>&1 | grep -ie "jupyter_scheduler.*OK"
42-
43- jupyter labextension list
44- jupyter labextension list 2>&1 | grep -ie "@jupyterlab/scheduler.*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 "jupyter_scheduler" jupyterlab
54-
55- - name : Upload extension packages
56- uses : actions/upload-artifact@v2
57- with :
58- name : extension-artifacts
59- path : dist/jupyter_scheduler*
60- if-no-files-found : error
18+ - name : Checkout
19+ uses : actions/checkout@v2
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~=3.1
26+
27+ - name : Lint the extension
28+ run : |
29+ set -eux
30+ jlpm
31+
32+ - name : Test the extension
33+ run : |
34+ set -eux
35+ jlpm run test
36+ python -m pip install .[test]
37+ pytest -vv -r ap --cov jupyter_scheduler
38+
39+ - name : Build the extension
40+ run : |
41+ set -eux
42+ python -m pip install .
43+
44+ jupyter server extension list
45+ jupyter server extension list 2>&1 | grep -ie "jupyter_scheduler.*OK"
46+
47+ jupyter labextension list
48+ jupyter labextension list 2>&1 | grep -ie "@jupyterlab/scheduler.*OK"
49+ python -m jupyterlab.browser_check
50+
51+ - name : Package the extension
52+ run : |
53+ set -eux
54+
55+ pip install build
56+ python -m build
57+ pip uninstall -y "jupyter_scheduler" jupyterlab
58+
59+ - name : Upload extension packages
60+ uses : actions/upload-artifact@v2
61+ with :
62+ name : extension-artifacts
63+ path : dist/jupyter_scheduler*
64+ if-no-files-found : error
6165
6266 test_isolated :
6367 needs : build
6468 runs-on : ubuntu-latest
6569
6670 steps :
67- - name : Checkout
68- uses : actions/checkout@v2
69- - name : Install Python
70- uses : actions/setup-python@v2
71- with :
72- python-version : ' 3.9'
73- architecture : ' x64'
74- - uses : actions/download-artifact@v2
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~=3.1" jupyter_scheduler*.whl
85-
86-
87- jupyter server extension list
88- jupyter server extension list 2>&1 | grep -ie "jupyter_scheduler.*OK"
89-
90- jupyter labextension list
91- jupyter labextension list 2>&1 | grep -ie "@jupyterlab/scheduler.*OK"
92- python -m jupyterlab.browser_check --no-chrome-test
71+ - name : Checkout
72+ uses : actions/checkout@v2
73+ - name : Install Python
74+ uses : actions/setup-python@v2
75+ with :
76+ python-version : ' 3.9'
77+ architecture : ' x64'
78+ - uses : actions/download-artifact@v2
79+ with :
80+ name : extension-artifacts
81+ - name : Install and Test
82+ run : |
83+ set -eux
84+ # Remove NodeJS, twice to take care of system and locally installed node versions.
85+ sudo rm -rf $(which node)
86+ sudo rm -rf $(which node)
87+
88+ pip install "jupyterlab~=3.1" jupyter_scheduler*.whl
89+
90+
91+ jupyter server extension list
92+ jupyter server extension list 2>&1 | grep -ie "jupyter_scheduler.*OK"
93+
94+ jupyter labextension list
95+ jupyter labextension list 2>&1 | grep -ie "@jupyterlab/scheduler.*OK"
96+ python -m jupyterlab.browser_check --no-chrome-test
9397
9498 integration-tests :
9599 name : Integration tests
@@ -100,49 +104,49 @@ jobs:
100104 PLAYWRIGHT_BROWSERS_PATH : ${{ github.workspace }}/pw-browsers
101105
102106 steps :
103- - name : Checkout
104- uses : actions/checkout@v2
105-
106- - name : Base Setup
107- uses : jupyterlab/maintainer-tools/.github/actions/base-setup@v1
108-
109- - name : Download extension package
110- uses : actions/download-artifact@v2
111- with :
112- name : extension-artifacts
113-
114- - name : Install the extension
115- run : |
116- set -eux
117- python -m pip install "jupyterlab~=3.1" jupyter_scheduler*.whl
118-
119- - name : Install dependencies
120- working-directory : ui-tests
121- env :
122- PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD : 1
123- run : jlpm install
124-
125- - name : Set up browser cache
126- uses : actions/cache@v2
127- with :
128- path : |
129- ${{ github.workspace }}/pw-browsers
130- key : ${{ runner.os }}-${{ hashFiles('ui-tests/yarn.lock') }}
131-
132- - name : Install browser
133- run : jlpm playwright install chromium
134- working-directory : ui-tests
135-
136- - name : Execute integration tests
137- working-directory : ui-tests
138- run : |
139- jlpm playwright test
140-
141- - name : Upload Playwright Test report
142- if : always()
143- uses : actions/upload-artifact@v2
144- with :
145- name : jupyter_scheduler-playwright-tests
146- path : |
147- ui-tests/test-results
148- ui-tests/playwright-report
107+ - name : Checkout
108+ uses : actions/checkout@v2
109+
110+ - name : Base Setup
111+ uses : jupyterlab/maintainer-tools/.github/actions/base-setup@v1
112+
113+ - name : Download extension package
114+ uses : actions/download-artifact@v2
115+ with :
116+ name : extension-artifacts
117+
118+ - name : Install the extension
119+ run : |
120+ set -eux
121+ python -m pip install "jupyterlab~=3.1" jupyter_scheduler*.whl
122+
123+ - name : Install dependencies
124+ working-directory : ui-tests
125+ env :
126+ PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD : 1
127+ run : jlpm install
128+
129+ - name : Set up browser cache
130+ uses : actions/cache@v2
131+ with :
132+ path : |
133+ ${{ github.workspace }}/pw-browsers
134+ key : ${{ runner.os }}-${{ hashFiles('ui-tests/yarn.lock') }}
135+
136+ - name : Install browser
137+ run : jlpm playwright install chromium
138+ working-directory : ui-tests
139+
140+ - name : Execute integration tests
141+ working-directory : ui-tests
142+ run : |
143+ jlpm playwright test
144+
145+ - name : Upload Playwright Test report
146+ if : always()
147+ uses : actions/upload-artifact@v2
148+ with :
149+ name : jupyter_scheduler-playwright-tests
150+ path : |
151+ ui-tests/test-results
152+ ui-tests/playwright-report
0 commit comments