-
Notifications
You must be signed in to change notification settings - Fork 227
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: martinRenou <martin.renou@gmail.com>
- Loading branch information
1 parent
bd477f5
commit e31db70
Showing
15 changed files
with
11,085 additions
and
393 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
name: Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
run: | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, macos-latest] | ||
python-version: [3.7, 3.8] | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup conda | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
mamba-version: "*" | ||
channels: conda-forge | ||
|
||
- name: Mamba install dependencies | ||
shell: bash -l {0} | ||
run: mamba install python=${{ matrix.python-version }} pip nodejs ipywidgets=7.6 jupyter jupyterlab=3 pillow numpy matplotlib flake8 pytest nbval | ||
|
||
- name: Install ipympl | ||
shell: bash -l {0} | ||
run: pip install -e . | ||
|
||
- name: Check installation files | ||
shell: bash -l {0} | ||
run: | | ||
test -d $CONDA_PREFIX/share/jupyter/nbextensions/jupyter-matplotlib | ||
test -f $CONDA_PREFIX/share/jupyter/nbextensions/jupyter-matplotlib/extension.js | ||
test -f $CONDA_PREFIX/share/jupyter/nbextensions/jupyter-matplotlib/index.js | ||
test -d $CONDA_PREFIX/share/jupyter/labextensions/jupyter-matplotlib | ||
test -f $CONDA_PREFIX/share/jupyter/labextensions/jupyter-matplotlib/package.json | ||
- name: Check nbextension and labextension | ||
shell: bash -l {0} | ||
run: | | ||
jupyter nbextension list 2>&1 | grep -ie "jupyter-matplotlib/extension.*enabled" - | ||
jupyter labextension list 2>&1 | grep -ie "jupyter-matplotlib.*enabled.*ok" - | ||
- name: Run tests | ||
shell: bash -l {0} | ||
run: pytest . | ||
|
||
- name: Test flake8 | ||
shell: bash -l {0} | ||
run: flake8 ipympl --ignore=E501,W504,W503 | ||
|
||
- name: Test JS linters | ||
shell: bash -l {0} | ||
working-directory: js | ||
run: | | ||
npm run eslint:check | ||
npm run prettier:check |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
recursive-include ipympl/static *.* | ||
recursive-include ipympl/nbextension *.* | ||
recursive-include ipympl/labextension *.* | ||
|
||
include js/*.tgz | ||
include js/package.json | ||
include LICENSE | ||
include jupyter-matplotlib.json | ||
|
||
include setup.py | ||
include pyproject.toml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
version_info = (0, 5, 8) | ||
__version__ = '.'.join(map(str, version_info)) | ||
js_semver = '^0.7.4' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.