name: CI

on: [push, pull_request]

jobs:
  build:

    runs-on: ${{ matrix.os }}
    strategy:
      max-parallel: 4
      matrix:
        os: [ubuntu-latest, macOS-latest, windows-latest]
        python-version: [3.6, 3.7, 3.8, 3.9]

    steps:
    - uses: actions/checkout@v2
    - name: Set up Python ${{ matrix.python-version }}
      uses: actions/setup-python@v2
      with:
        python-version: ${{ matrix.python-version }}

    - name: update pip
      run: |
        python -m pip install --upgrade pip

    - name: install testing dependencies
      run: |
        python -m pip install -r requirements.txt
        python setup.py develop

    - name: Check docs build
      run: |
        python -m pip install sphinx
        cd docs; make html; cd ..;

    - name: Run tests
        python -m pip install coverage
        coverage run --source=ciw -m unittest discover

    - name: Report coverage
      run: |
        coverage report -m --fail-under=100

Write github actions config file.
Write github actions config file.
