name: Test suite

on: [push, pull_request]

jobs:
  unit_tests:
    runs-on: ${{ matrix.os }}
    strategy:
      max-parallel: 8
      matrix:
        os: [ubuntu-20.04, macos-10.15]
        python-version: ["3.5", "3.6", "3.7", "3.8", "3.9", "3.10"]
    steps:
    - uses: actions/checkout@v2
    - name: Set up Python ${{ matrix.python-version }}
      uses: actions/setup-python@v2
      with:
        python-version: ${{ matrix.python-version }}
    - name: Install
      run: |
        [[ $(uname) == Linux ]] && sudo apt-get install --no-install-recommends python3-openssl python3-lxml
        pip install coverage wheel
        make install
    - name: Test
      run: |
        make test
    - name: Upload coverage data
      run: |
        bash <(curl -s https://codecov.io/bash)

name: Test suite

on: [push, pull_request]

jobs:
  unit_tests:
    runs-on: ${{ matrix.os }}
    strategy:
      max-parallel: 8
      matrix:
        os: [ubuntu-20.04, ubuntu-22.04, macos-10.15]
        python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
        exclude:
          - os: ubuntu-22.04
            python-version: 3.6
    steps:
    - uses: actions/checkout@v2
    - name: Set up Python ${{ matrix.python-version }}
      uses: actions/setup-python@v2
      with:
        python-version: ${{ matrix.python-version }}
    - name: Install
      run: |
        [[ $(uname) == Linux ]] && sudo apt-get install --no-install-recommends python3-openssl python3-lxml
        pip install coverage wheel
        make install
    - name: Test
      run: |
        make test
    - name: Upload coverage data
      run: |
        bash <(curl -s https://codecov.io/bash)

Add ubuntu 22.04 to test matrix
Add ubuntu 22.04 to test matrix
