Use micromamba #860
Workflow file for this run
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
name: Tests | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
defaults: | |
run: | |
shell: bash -l {0} | |
jobs: | |
run: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
python-version: [3.8] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup conda | |
uses: mamba-org/setup-micromamba@v1 | |
with: | |
environment-file: environment-dev.yml | |
condarc: | | |
channels: | |
conda-forge | |
dependencies: | |
- python==${{ matrix.python-version }} | |
- name: Install ipyleaflet | |
run: pip install . --no-deps | |
- name: Check installation files | |
run: | | |
test -d $CONDA_PREFIX/share/jupyter/nbextensions/jupyter-leaflet | |
test -f $CONDA_PREFIX/share/jupyter/nbextensions/jupyter-leaflet/extension.js | |
test -f $CONDA_PREFIX/share/jupyter/nbextensions/jupyter-leaflet/index.js | |
test -d $CONDA_PREFIX/share/jupyter/labextensions/jupyter-leaflet | |
test -f $CONDA_PREFIX/share/jupyter/labextensions/jupyter-leaflet/package.json | |
- name: Python Linters | |
run: flake8 ipyleaflet --ignore=E501,E731 | |
- name: JS Linters | |
run: | | |
yarn install | |
yarn run lint:check | |
working-directory: js | |
- name: Import check | |
run: python -c 'import ipyleaflet' |