@@ -2,30 +2,30 @@ parameters:
2
2
platforms :
3
3
- name : Linux
4
4
vmImage : ubuntu-16.04
5
- activate : source activate
5
+ activate : source activate base
6
6
- name : MacOSX
7
7
vmImage : macos-10.14
8
- activate : source activate
8
+ activate : source activate base
9
9
- name : Windows
10
10
vmImage : vs2017-win2016
11
- activate : call activate
11
+ activate : call activate base
12
12
pythons :
13
13
- name : ThreeSix
14
- spec : ' > =3.6,<3.7.0a0 '
14
+ spec : ' =3.6'
15
15
lab : ' >=2,<3.0.0a0'
16
16
nodejs : ' >=10,<11.0.0.a0'
17
17
- name : ThreeSeven
18
- spec : ' > =3.7,<3.8.0a0 '
18
+ spec : ' =3.7'
19
19
lab : ' >=2,<3.0.0a0'
20
20
nodejs : ' >=12,<13.0.0a0'
21
21
- name : ThreeEight
22
- spec : ' > =3.8,<3.9.0a0 '
22
+ spec : ' =3.8'
23
23
lab : ' >=2,<3.0.0a0'
24
24
nodejs : ' >=13,<14.0.0a0'
25
25
js_cov_packages :
26
26
- jupyterlab-go-to-definition
27
27
- jupyterlab-lsp
28
- env_update : conda env update -n jupyterlab-lsp --file env-test.yml --quiet
28
+ env_update : conda env update -n base --file env-test.yml --quiet
29
29
lab_link : jupyter labextension link --debug --no-build $(LINKED_EXTENSIONS)
30
30
lab_ext : jupyter labextension install --debug --no-build $(FIRST_PARTY_LABEXTENSIONS)
31
31
lab_build : jupyter lab build --debug --dev-build=False --minimize=True
@@ -40,32 +40,36 @@ jobs:
40
40
- template : steps.conda.yml
41
41
parameters :
42
42
name : ${{ platform.name }}
43
+ packages : " 'python${{ python.spec }}'"
43
44
44
45
- script : ${{ platform.activate }} && cd ci && python env_template.py "${{ python.spec }}" "${{ python.lab }}" "${{ python.nodejs }}"
45
46
displayName : generate env with python, lab, and nodejs version
46
47
47
48
- script : ${{ parameters.env_update }} || ${{ parameters.env_update }} || ${{ parameters.env_update }}
48
49
displayName : update conda environment with test dependencies
49
50
50
- - script : conda info && conda list -n jupyterlab-lsp
51
+ - script : conda info && conda list -n base
51
52
displayName : list conda packages and info
52
53
53
- - script : ${{ platform.activate }} jupyterlab-lsp && jlpm || jlpm || jlpm
54
+ - script : ${{ platform.activate }} && jlpm || jlpm || jlpm
54
55
displayName : install npm dependencies
55
56
56
- - script : ${{ platform.activate }} jupyterlab-lsp && jlpm build
57
+ - script : ${{ platform.activate }} && jlpm build
57
58
displayName : build typescript
58
59
59
- - script : ${{ platform.activate }} jupyterlab-lsp && python setup.py sdist bdist_wheel
60
+ - script : ${{ platform.activate }} && python setup.py sdist bdist_wheel
60
61
displayName : build python distributions
61
62
62
- - script : ${{ platform.activate }} jupyterlab-lsp && jlpm lerna run bundle
63
+ - script : ${{ platform.activate }} && jlpm lerna run bundle
63
64
displayName : build npm bundles
64
65
65
- - script : ${{ platform.activate }} jupyterlab-lsp && cd dist && python -m pip install jupyter_lsp-$(PY_JLSP_VERSION)-py3-none-any.whl --no-deps
66
+ - script : ${{ platform.activate }} && cd dist && python -m pip install jupyter_lsp-$(PY_JLSP_VERSION)-py3-none-any.whl --no-deps
66
67
displayName : install python wheel
67
68
68
- - script : ${{ platform.activate }} jupyterlab-lsp && jlpm test
69
+ - script : ${{ platform.activate }} && python scripts/jedi_cache.py
70
+ displayName : warm up jedi cache
71
+
72
+ - script : ${{ platform.activate }} && jlpm test
69
73
displayName : run frontend unit tests
70
74
71
75
- task : PublishTestResults@2
@@ -84,28 +88,28 @@ jobs:
84
88
summaryFileLocation : ' packages/${{ js_package }}/coverage/cobertura-coverage.xml'
85
89
condition : always()
86
90
87
- - script : ${{ platform.activate }} jupyterlab-lsp && jupyter serverextension list
91
+ - script : ${{ platform.activate }} && jupyter serverextension list
88
92
displayName : list server extensions
89
93
90
- - script : ${{ platform.activate }} jupyterlab-lsp && python scripts/utest.py --test-run-title="Pytest ${{ platform.name }}${{ python.name }}"
94
+ - script : ${{ platform.activate }} && python scripts/utest.py --test-run-title="Pytest ${{ platform.name }}${{ python.name }}"
91
95
displayName : run python tests
92
96
93
- - script : ${{ platform.activate }} jupyterlab-lsp && ${{ parameters.lab_link }} || ${{ parameters.lab_link }} || ${{ parameters.lab_link }}
97
+ - script : ${{ platform.activate }} && ${{ parameters.lab_link }} || ${{ parameters.lab_link }} || ${{ parameters.lab_link }}
94
98
displayName : install support packages
95
99
96
- - script : ${{ platform.activate }} jupyterlab-lsp && ${{ parameters.lab_ext }} || ${{ parameters.lab_ext }} || ${{ parameters.lab_ext }}
100
+ - script : ${{ platform.activate }} && ${{ parameters.lab_ext }} || ${{ parameters.lab_ext }} || ${{ parameters.lab_ext }}
97
101
displayName : install labextensions
98
102
99
- - script : ${{ platform.activate }} jupyterlab-lsp && jupyter labextension list
103
+ - script : ${{ platform.activate }} && jupyter labextension list
100
104
displayName : list labextensions before build
101
105
102
- - script : ${{ platform.activate }} jupyterlab-lsp && ${{ parameters.lab_build }} || ${{ parameters.lab_build }} || ${{ parameters.lab_build }}
106
+ - script : ${{ platform.activate }} && ${{ parameters.lab_build }} || ${{ parameters.lab_build }} || ${{ parameters.lab_build }}
103
107
displayName : build lab
104
108
105
- - script : ${{ platform.activate }} jupyterlab-lsp && jupyter labextension list
109
+ - script : ${{ platform.activate }} && jupyter labextension list
106
110
displayName : list labextensions after build
107
111
108
- - script : ${{ platform.activate }} jupyterlab-lsp && python scripts/atest.py
112
+ - script : ${{ platform.activate }} && python scripts/atest.py
109
113
displayName : run browser tests
110
114
111
115
- task : PublishTestResults@2
0 commit comments