Skip to content

Commit febd482

Browse files
committed
Simplify and update github workflows
1 parent 761b484 commit febd482

File tree

2 files changed

+18
-27
lines changed

2 files changed

+18
-27
lines changed

.github/workflows/main.yml

Lines changed: 14 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -20,32 +20,24 @@ jobs:
2020

2121
steps:
2222
- name: Checkout
23-
uses: actions/checkout@v2
23+
uses: actions/checkout@v3
2424

25-
- name: Setup conda
26-
uses: conda-incubator/setup-miniconda@v2
25+
- name: Install node
26+
uses: actions/setup-node@v3
2727
with:
28-
mamba-version: "*"
29-
channels: conda-forge
28+
node-version: '16'
29+
cache: 'yarn'
3030

31-
- name: Mamba install dependencies
32-
shell: bash -l {0}
33-
run: mamba install python=${{ matrix.python-version }} pip yarn ipywidgets=7.6 jupyterlab=3 pytest nbval
34-
35-
- name: Install sidecar
36-
shell: bash -l {0}
37-
run: pip install -ve .
38-
env:
39-
# To fix an issue with webpack and openssl3 https://stackoverflow.com/questions/69692842/error-message-error0308010cdigital-envelope-routinesunsupported
40-
NODE_OPTIONS: "--openssl-legacy-provider"
31+
- name: Install Python
32+
uses: actions/setup-python@v4
33+
with:
34+
python-version: '3.x'
35+
cache: 'pip'
36+
cache-dependency-path: setup.py
4137

42-
- name: Check installation files
43-
shell: bash -l {0}
44-
run: |
45-
echo $CONDA_PREFIX
46-
ls $CONDA_PREFIX/share/jupyter/labextensions/@jupyter-widgets/
47-
test -d $CONDA_PREFIX/share/jupyter/labextensions/@jupyter-widgets/jupyterlab-sidecar
48-
test -f $CONDA_PREFIX/share/jupyter/labextensions/@jupyter-widgets/jupyterlab-sidecar/package.json
38+
- run: pip install jupyterlab pytest nbval jupyter_packaging
39+
- run: pip install -ve .
40+
- run: jupyter labextension develop . --overwrite
4941

5042
- name: Check labextension
5143
shell: bash -l {0}

.github/workflows/release.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,15 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Checkout
16-
uses: actions/checkout@v2
16+
uses: actions/checkout@v3
1717

1818
- name: Install node
19-
uses: actions/setup-node@v1
19+
uses: actions/setup-node@v3
2020
with:
21-
node-version: '14.x'
22-
registry-url: 'https://registry.npmjs.org'
21+
node-version: '16'
2322

2423
- name: Install Python
25-
uses: actions/setup-python@v2
24+
uses: actions/setup-python@v4
2625
with:
2726
python-version: '3.x'
2827

0 commit comments

Comments
 (0)