Skip to content

Commit 4b9cca9

Browse files
authored
Merge pull request #37 from martinRenou/test_windows
Run CI on Windows + Use micromamba
2 parents 74c3286 + 3c56151 commit 4b9cca9

File tree

3 files changed

+33
-25
lines changed

3 files changed

+33
-25
lines changed

.github/workflows/build.yml

Lines changed: 22 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,25 @@ on:
77
pull_request:
88
branches: '*'
99

10+
defaults:
11+
run:
12+
shell: bash -l {0}
13+
1014
jobs:
1115
build:
12-
runs-on: ubuntu-latest
16+
runs-on: ${{ matrix.os }}
17+
strategy:
18+
matrix:
19+
os: [ubuntu-latest, windows-latest]
1320
steps:
1421
- name: Checkout
1522
uses: actions/checkout@v2
1623

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
2226

2327
- name: Build the extension
2428
run: |
25-
set -eux
2629
jlpm
2730
jlpm lint:check
2831
python -m pip install .
@@ -32,39 +35,33 @@ jobs:
3235
3336
check-manifest -v
3437
35-
pip install build
3638
python -m build --sdist
37-
cp dist/*.tar.gz myextension.tar.gz
39+
cp dist/*.tar.gz jupyterlab-filesystem-access.tar.gz
3840
pip uninstall -y "jupyterlab_filesystem_access" jupyterlab
39-
rm -rf myextension
41+
rm -rf jupyterlab-filesystem-access
4042
4143
- uses: actions/upload-artifact@v2
4244
with:
43-
name: myextension-sdist
44-
path: myextension.tar.gz
45+
name: jupyterlab-filesystem-access-sdist
46+
path: jupyterlab-filesystem-access.tar.gz
4547

4648
test_isolated:
4749
needs: build
48-
runs-on: ubuntu-latest
50+
runs-on: ${{ matrix.os }}
51+
strategy:
52+
matrix:
53+
os: [ubuntu-latest, windows-latest]
4954

5055
steps:
5156
- name: Checkout
5257
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
5860
- uses: actions/download-artifact@v2
5961
with:
60-
name: myextension-sdist
62+
name: jupyterlab-filesystem-access-sdist
6163
- name: Install and Test
6264
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
6966
jupyter labextension list 2>&1 | grep -ie "jupyterlab-filesystem-access.*OK"
7067
python -m jupyterlab.browser_check --no-chrome-test

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ include package.json
66
include install.json
77
include ts*.json
88
include yarn.lock
9+
include environment.yml
910

1011
graft jupyterlab_filesystem_access/labextension
1112

environment.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: jupyterlab-filesystem-access
2+
channels:
3+
- conda-forge
4+
dependencies:
5+
- jupyterlab
6+
- yarn
7+
- jupyter-packaging
8+
- build
9+
- check-manifest
10+
- pip

0 commit comments

Comments
 (0)