name: "Pull Request Docs Check"
on:
- pull_request

jobs:
  docs:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - name: Set up Python 3.x
      uses: actions/setup-python@v2
      with:
        # Semantic version range syntax or exact version of a Python version
        python-version: '3.x'
    # You can test your matrix by printing the current Python version
    - name: Display Python version
      run: python -c "import sys; print(sys.version)"
    - name: Install ruptures
      run: |
        python -m pip install --upgrade pip
        pip install -e .
    - name: Install dependencies
      run: |
        pip install -r requirements-dev.txt
    - name: Run notebooks
      run: |
        jupyter nbconvert --inplace --to notebook --ExecutePreprocessor.kernel_name=python --execute notebooks/*.ipynb
    - name: Build documentation
      run: |
        mkdocs build
    - uses: actions/upload-artifact@v1
      with:
        name: DocumentationHTML
        path: site/

name: "Pull Request Docs Check"
on:
- pull_request

jobs:
  docs:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - name: Set up Python 3.x
      uses: actions/setup-python@v2
      with:
        # Semantic version range syntax or exact version of a Python version
        python-version: '3.8'
    # You can test your matrix by printing the current Python version
    - name: Display Python version
      run: python -c "import sys; print(sys.version)"
    - name: Install ruptures
      run: |
        python -m pip install --upgrade pip
        pip install -e .
    - name: Install dependencies
      run: |
        pip install -r requirements-dev.txt
    - name: Run notebooks
      run: |
        jupyter nbconvert --inplace --to notebook --ExecutePreprocessor.kernel_name=python --execute notebooks/*.ipynb
    - name: Build documentation
      run: |
        mkdocs build
    - uses: actions/upload-artifact@v1
      with:
        name: DocumentationHTML
        path: site/

Make github action work New python 3.9 is too long and does not work yet
Make github action work
New python 3.9 is too long and does not work yet
