name: Python package

on: [push, pull_request]

jobs:
  build:
    runs-on: ${{matrix.os}}
    strategy:
      matrix:
        os: [ubuntu-20.04, macos-10.15]
        python-version: [2.7, 3.5, 3.6, 3.7, 3.8]

    steps:
    - uses: actions/checkout@v1
    - name: Set up Python ${{matrix.python-version}}
      uses: actions/setup-python@v1
      with:
        python-version: ${{matrix.python-version}}
    - name: Install
      run: |
        [[ $(uname) == Linux ]] && sudo apt-get install --yes rpm tcsh fish
        [[ $(uname) == Darwin ]] && brew install bash rpm tcsh fish
        # OSX tests require https://github.com/pypa/pip/pull/6008 (added in 19.2)
        # in order to address https://stackoverflow.com/questions/24257803
        # (the fix recommended there does not appear to work without it).
        # However it no longer works after https://github.com/pypa/pip/issues/7309
        # (added in 20.2), so we must specifically install a version between these.
        if [[ $(uname) == Darwin ]]; then python -m pip install 'pip>=19.2,<20.2'; fi
        python -m pip install --quiet --upgrade codecov
    - name: Test
      run: |
        make test
    - uses: codecov/codecov-action@v1

name: Python package

on: [push, pull_request]

jobs:
  build:
    runs-on: ${{matrix.os}}
    strategy:
      matrix:
        os: [ubuntu-20.04, macos-10.15]
        python-version: [2.7, 3.5, 3.6, 3.7, 3.8, 3.9]

    steps:
    - uses: actions/checkout@v1
    - name: Set up Python ${{matrix.python-version}}
      uses: actions/setup-python@v1
      with:
        python-version: ${{matrix.python-version}}
    - name: Install
      run: |
        [[ $(uname) == Linux ]] && sudo apt-get install --yes rpm tcsh fish
        [[ $(uname) == Darwin ]] && brew install bash rpm tcsh fish
        # OSX tests require https://github.com/pypa/pip/pull/6008 (added in 19.2)
        # in order to address https://stackoverflow.com/questions/24257803
        # (the fix recommended there does not appear to work without it).
        # However it no longer works after https://github.com/pypa/pip/issues/7309
        # (added in 20.2), so we must specifically install a version between these.
        if [[ $(uname) == Darwin ]]; then python -m pip install 'pip>=19.2,<20.2'; fi
        python -m pip install --quiet --upgrade codecov
    - name: Test
      run: |
        make test
    - uses: codecov/codecov-action@v1

Add Python 3.9 to test matrix
Add Python 3.9 to test matrix
