Skip to content

Commit

Permalink
Simplify and update github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
jasongrout committed Dec 10, 2022
1 parent 761b484 commit febd482
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 27 deletions.
36 changes: 14 additions & 22 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,32 +20,24 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Setup conda
uses: conda-incubator/setup-miniconda@v2
- name: Install node
uses: actions/setup-node@v3
with:
mamba-version: "*"
channels: conda-forge
node-version: '16'
cache: 'yarn'

- name: Mamba install dependencies
shell: bash -l {0}
run: mamba install python=${{ matrix.python-version }} pip yarn ipywidgets=7.6 jupyterlab=3 pytest nbval

- name: Install sidecar
shell: bash -l {0}
run: pip install -ve .
env:
# To fix an issue with webpack and openssl3 https://stackoverflow.com/questions/69692842/error-message-error0308010cdigital-envelope-routinesunsupported
NODE_OPTIONS: "--openssl-legacy-provider"
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
cache: 'pip'
cache-dependency-path: setup.py

- name: Check installation files
shell: bash -l {0}
run: |
echo $CONDA_PREFIX
ls $CONDA_PREFIX/share/jupyter/labextensions/@jupyter-widgets/
test -d $CONDA_PREFIX/share/jupyter/labextensions/@jupyter-widgets/jupyterlab-sidecar
test -f $CONDA_PREFIX/share/jupyter/labextensions/@jupyter-widgets/jupyterlab-sidecar/package.json
- run: pip install jupyterlab pytest nbval jupyter_packaging
- run: pip install -ve .
- run: jupyter labextension develop . --overwrite

- name: Check labextension
shell: bash -l {0}
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Install node
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: '14.x'
registry-url: 'https://registry.npmjs.org'
node-version: '16'

- name: Install Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: '3.x'

Expand Down

0 comments on commit febd482

Please sign in to comment.