@@ -18,20 +18,17 @@ jobs:
18
18
build :
19
19
runs-on : ubuntu-latest
20
20
steps :
21
-
22
21
- name : Checkout
23
22
uses : actions/checkout@v2
24
23
25
24
- name : Install Conda environment with Micromamba
26
- uses : mamba-org/provision-with- micromamba@main
25
+ uses : mamba-org/setup- micromamba@v1
27
26
with :
28
- environment-name : ipympl-dev
29
- environment-file : dev-environment.yml
30
- channels : conda-forge
27
+ environment-file : dev-environment.yml
31
28
32
29
- name : Build packages
33
30
run : |
34
- python setup.py sdist bdist_wheel
31
+ python -m build
35
32
cd dist
36
33
sha256sum * | tee SHA256SUMS
37
34
@@ -49,25 +46,30 @@ jobs:
49
46
fail-fast : false
50
47
matrix :
51
48
os : [ubuntu, macos]
52
- python : ['3.10', '3.9']
53
- mpl-version : ['3.5', 'latest']
49
+ python : ['3.9', '3.12']
50
+ mpl-version : ['latest']
51
+ dist : ['ipympl*.whl']
54
52
include :
55
- - python : ' 3.10'
56
- dist : ' ipympl*.tar.gz'
57
- - python : ' 3.9'
53
+ # Earliest supported Matplotlib, needs python <= 3.10
54
+ - os : ubuntu
55
+ python : ' 3.9'
56
+ mpl-version : ' 3.5'
58
57
dist : ' ipympl*.whl'
58
+ # Install from sdist not wheel
59
+ - os : ubuntu
60
+ python : ' 3.11'
61
+ mpl-version : ' latest'
62
+ dist : ' ipympl*.tar.gz'
59
63
60
64
steps :
61
65
- name : Checkout
62
66
uses : actions/checkout@v2
63
67
64
68
- name : Install Conda environment with Micromamba
65
- uses : mamba-org/provision-with- micromamba@main
69
+ uses : mamba-org/setup- micromamba@v1
66
70
with :
67
- environment-name : ipympl-dev
68
71
environment-file : dev-environment.yml
69
- channels : conda-forge
70
- extra-specs : |
72
+ create-args : >-
71
73
python=${{ matrix.python }}
72
74
73
75
- if : matrix.mpl-version == 'latest'
@@ -104,18 +106,18 @@ jobs:
104
106
run : jupyter labextension list 2>&1 | grep jupyter-matplotlib
105
107
106
108
- name : Run pytest
107
- run : pytest .
109
+ run : pytest -v .
108
110
109
111
- name : Install Galata test dependencies
110
112
if : matrix.os == 'ubuntu'
111
113
run : |
112
- yarn install
113
- yarn playwright install chromium
114
+ jlpm install
115
+ jlpm playwright install chromium
114
116
working-directory : ui-tests
115
117
116
118
- name : Launch JupyterLab
117
119
if : matrix.os == 'ubuntu'
118
- run : yarn run start:detached
120
+ run : jlpm start:detached
119
121
working-directory : ui-tests
120
122
121
123
- name : Wait for JupyterLab
@@ -127,7 +129,7 @@ jobs:
127
129
128
130
- name : Run UI Tests
129
131
if : matrix.os == 'ubuntu'
130
- run : yarn run test
132
+ run : jlpm test
131
133
working-directory : ui-tests
132
134
133
135
- name : Upload UI Test artifacts
@@ -150,7 +152,7 @@ jobs:
150
152
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
151
153
OS : ${{ matrix.os }}
152
154
PYTHON : ${{ matrix.python }}
153
- MATPLOLIBT : ${{ matrix.mpl-version }}
155
+ MATPLOTLIB : ${{ matrix.mpl-version }}
154
156
RUN_ID : ${{ github.run_id }}
155
157
TITLE : ' [test-bot] Scheduled Tests are failing'
156
158
with :
0 commit comments