name: Test pip

on:
  schedule:
    - cron:  '0 1 * * 0'

jobs:
  test:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        python-version: [2.7, 3.5, 3.6, 3.7, 3.8]

    steps:
    - name: Set up Python ${{ matrix.python-version }}
      uses: actions/setup-python@v1
      with:
        python-version: ${{ matrix.python-version }}
    - name: Install cxroots from pip
      run: |
        pip install cxroots
    - name: Download and unzip cxroots
      run: |
        pip download cxroots --no-deps
        tar -xzf cxroots-*.tar.gz
        cd cxroots-*
    - name: Test with pytest
      run: python setup.py test --addopts "-v -m 'not slow'"

Test cxroots can be installed from pip
Test cxroots can be installed from pip