<commit_before>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.6, 3.7, 3.8]

    steps:
    - uses: actions/checkout@v2

    - name: Setup conda
      uses: goanpeca/setup-miniconda@v1
      with:
        mamba-version: "*"
        channels: conda-forge

    - name: Conda install dependencies
      shell: bash -l {0}
      run: mamba install python=${{ matrix.python-version }} pip nodejs ipywidgets jupyter jupyterlab flake8

    - name: Install ipyleaflet
      shell: bash -l {0}
      run: pip install .

    - name: Install JupyterLab extension (Only on Linux for saving time)
      if: matrix.os == 'ubuntu-latest'
      shell: bash -l {0}
      run: jupyter labextension install js

    - name: Check installation files
      shell: bash -l {0}
      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

    - name: Flake8 check
      shell: bash -l {0}
      run: flake8 ipyleaflet --ignore=E501,E731

    - name: Import check
      shell: bash -l {0}
      run: python -c 'import ipyleaflet'
<commit_msg>Build docs in the CI<commit_after>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.6, 3.7, 3.8]

    steps:
    - uses: actions/checkout@v2

    - name: Setup conda
      uses: goanpeca/setup-miniconda@v1
      with:
        mamba-version: "*"
        channels: conda-forge

    - name: Conda install dependencies
      shell: bash -l {0}
      run: mamba install python=${{ matrix.python-version }} pip nodejs ipywidgets jupyter jupyterlab flake8

    - name: Install ipyleaflet
      shell: bash -l {0}
      run: pip install .

    - name: Install JupyterLab extension (Only on Linux for saving time)
      if: matrix.os == 'ubuntu-latest'
      shell: bash -l {0}
      run: jupyter labextension install js

    - name: Check installation files
      shell: bash -l {0}
      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

    - name: Flake8 check
      shell: bash -l {0}
      run: flake8 ipyleaflet --ignore=E501,E731

    - name: Import check
      shell: bash -l {0}
      run: python -c 'import ipyleaflet'

    - name: Build docs
      shell: bash -l {0}
      run: |
        mamba install sphinx sphinx_rtd_theme
        pip install -r docs/requirements.txt
        cd docs
        make html

{'fraction_non_alphanumeric': 0.10361842105263158, 'fraction_numerical': 0.015460526315789473, 'mean_word_length': 2.1644120707596253, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1430412', 'n_tokens_mistral': 1122, 'n_tokens_neox': 1062, 'n_words': 280}