7
7
pull_request :
8
8
branches : ' *'
9
9
10
+ defaults :
11
+ run :
12
+ shell : bash -l {0}
13
+
10
14
jobs :
11
15
build :
12
- runs-on : ubuntu-latest
16
+ runs-on : ${{ matrix.os }}
17
+ strategy :
18
+ matrix :
19
+ os : [ubuntu-latest, windows-latest]
13
20
steps :
14
21
- name : Checkout
15
22
uses : actions/checkout@v2
16
23
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 check-manifest
24
+ - name : Install Conda environment from environment.yml
25
+ uses : mamba-org/provision-with-micromamba@main
22
26
23
27
- name : Build the extension
24
28
run : |
25
- set -eux
26
29
jlpm
27
30
jlpm lint:check
28
31
python -m pip install .
@@ -32,39 +35,33 @@ jobs:
32
35
33
36
check-manifest -v
34
37
35
- pip install build
36
38
python -m build --sdist
37
- cp dist/*.tar.gz myextension .tar.gz
39
+ cp dist/*.tar.gz jupyterlab-filesystem-access .tar.gz
38
40
pip uninstall -y "jupyterlab_filesystem_access" jupyterlab
39
- rm -rf myextension
41
+ rm -rf jupyterlab-filesystem-access
40
42
41
43
- uses : actions/upload-artifact@v2
42
44
with :
43
- name : myextension -sdist
44
- path : myextension .tar.gz
45
+ name : jupyterlab-filesystem-access -sdist
46
+ path : jupyterlab-filesystem-access .tar.gz
45
47
46
48
test_isolated :
47
49
needs : build
48
- runs-on : ubuntu-latest
50
+ runs-on : ${{ matrix.os }}
51
+ strategy :
52
+ matrix :
53
+ os : [ubuntu-latest, windows-latest]
49
54
50
55
steps :
51
56
- name : Checkout
52
57
uses : actions/checkout@v2
53
- - name : Install Python
54
- uses : actions/setup-python@v2
55
- with :
56
- python-version : ' 3.8'
57
- architecture : ' x64'
58
+ - name : Install Conda environment from environment.yml
59
+ uses : mamba-org/provision-with-micromamba@main
58
60
- uses : actions/download-artifact@v2
59
61
with :
60
- name : myextension -sdist
62
+ name : jupyterlab-filesystem-access -sdist
61
63
- name : Install and Test
62
64
run : |
63
- set -eux
64
- # Remove NodeJS, twice to take care of system and locally installed node versions.
65
- sudo rm -rf $(which node)
66
- sudo rm -rf $(which node)
67
- pip install myextension.tar.gz
68
- pip install jupyterlab
65
+ pip install jupyterlab-filesystem-access.tar.gz
69
66
jupyter labextension list 2>&1 | grep -ie "jupyterlab-filesystem-access.*OK"
70
67
python -m jupyterlab.browser_check --no-chrome-test
0 commit comments