name: Continuous Integration

on:
  push:
    branches:
    - '*'
    tags:
    - '*'
  pull_request:

jobs:
  tests:
    name: ${{ matrix.name }}
    runs-on: ${{ matrix.os }}
    strategy:
      fail-fast: false
      matrix:
        include:
          - name: Python 3.6
            os: ubuntu-latest
            python: '3.6'
          - name: Python 3.7
            os: ubuntu-latest
            python: '3.7'
          - name: Python 3.8
            os: ubuntu-latest
            python: '3.8'
          - name: Python 3.9
            os: ubuntu-latest
            python: '3.9'
          - name: Python 3.10
            os: ubuntu-latest
            python: '3.10'
    steps:
    - name: Checkout code
      uses: actions/checkout@v2
      with:
        submodules: 'true'
    - name: Set up Python
      uses: actions/setup-python@v2
      with:
        python-version: ${{ matrix.python }}
    - name: Install HDF5 and MPI
      if: startsWith(matrix.os, 'ubuntu')
      run: sudo apt-get install libhdf5-serial-dev libmpich-dev
    - name: Run tests
      run: tox -e test

name: Continuous Integration

on:
  push:
    branches:
    - '*'
    tags:
    - '*'
  pull_request:

jobs:
  tests:
    name: ${{ matrix.name }}
    runs-on: ${{ matrix.os }}
    strategy:
      fail-fast: false
      matrix:
        include:
          - name: Python 3.6
            os: ubuntu-latest
            python: '3.6'
          - name: Python 3.7
            os: ubuntu-latest
            python: '3.7'
          - name: Python 3.8
            os: ubuntu-latest
            python: '3.8'
          - name: Python 3.9
            os: ubuntu-latest
            python: '3.9'
          - name: Python 3.10
            os: ubuntu-latest
            python: '3.10'
    steps:
    - name: Checkout code
      uses: actions/checkout@v2
      with:
        submodules: 'true'
    - name: Set up Python
      uses: actions/setup-python@v2
      with:
        python-version: ${{ matrix.python }}
    - name: Install HDF5 and MPI
      if: startsWith(matrix.os, 'ubuntu')
      run: sudo apt-get install libhdf5-serial-dev libmpich-dev
    - name: Install tox
      run: pip install tox
    - name: Run tests
      run: tox -e test

Install tox on GitHub actions
Install tox on GitHub actions
