1- name : Test
1+ name : Build
22
33on :
44 push :
5- branches : [ master]
5+ branches : master
66 pull_request :
77 branches : " *"
88
@@ -12,22 +12,25 @@ jobs:
1212 runs-on : ubuntu-latest
1313 strategy :
1414 matrix :
15- python-version : [' 3.6', ' 3.7', ' 3.8', ' 3.9' ]
15+ python-version : [" 3.6", " 3.7", " 3.8", " 3.9" ]
1616 steps :
1717 - name : Checkout
1818 uses : actions/checkout@v2
19-
19+ - name : Install node
20+ uses : actions/setup-node@v1
21+ with :
22+ node-version : " 12.x"
2023 - name : Setup Python ${{ matrix.python-version }}
2124 uses : actions/setup-python@v2
2225 with :
2326 python-version : ${{ matrix.python-version }}
24- architecture : ' x64'
27+ architecture : " x64"
2528
2629 - name : Get pip cache dir
2730 id : pip-cache
2831 run : |
2932 echo "::set-output name=dir::$(pip cache dir)"
30-
33+
3134 - name : pip cache
3235 uses : actions/cache@v2
3336 with :
@@ -56,39 +59,28 @@ jobs:
5659 ${{ runner.os }}-yarn-
5760
5861 - name : Install dependencies
59- run : |
60- pip install wheel
61- pip install --upgrade --upgrade-strategy=eager "jupyterlab~=2.0"
62-
62+ run : python -m pip install -U jupyter_packaging~=0.7.9 jupyterlab~=3.0 pip wheel
6363 - name : Test the extension
6464 run : |
65- # Build the sdist (identical to what will be uploaded to eg pypi on release)
66- python setup.py sdist
67- # Linter checks
68- jlpm run eslint-check
69-
70- # Install the extension from the sdist ensuring the cache is unused
71- pip install jupyterlab_git[test] --pre --no-index --find-links=dist --no-deps --no-cache-dir -v
72- # Install the extension dependencies based on the current setup.py
73- pip install jupyterlab_git[test]
65+ jlpm
66+ jlpm run eslint:check
67+ python -m pip install -e .[dev]
7468
7569 # Python formatting checks
7670 black . --check
77-
71+
7872 # Run the Python tests
7973 pytest jupyterlab_git -r ap
8074 # Run the TS/JS tests
8175 jlpm run test
82-
83- # Log the current state of jupyterlab's extensions
84- jupyter labextension list
85- # Rebuild jupyterlab to include our extension
86- jupyter lab build
87- # Run the standard jupyterlab browser integration test
88- jupyter serverextension list 1>serverextensions 2>&1
89- cat serverextensions | grep "jupyterlab_git.*OK"
90- jupyter labextension list 1>labextensions 2>&1
91- cat labextensions | grep "@jupyterlab/git.*OK"
76+
77+ python -m pip uninstall -y jupyterlab-git
78+
79+ # Integration test
80+ python -m pip install .
81+ jupyter server extension list 2>&1 | grep -ie "jupyterlab_git.*OK"
82+
83+ jupyter labextension list 2>&1 | grep -ie "@jupyterlab/git.*OK"
9284 python -m jupyterlab.browser_check
9385 # Run our extension-specific browser integration test
94- python tests/test-browser/run_browser_test.py
86+ # python tests/test-browser/run_browser_test.py
0 commit comments