name: test

on: [push]

jobs:
  lint:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/setup-python@v1
      with:
        python-version: "3.x"
    - uses: actions/checkout@v1
    - name: Lint with flake8
      run: |
        pip install --upgrade pip
        pip install flake8
        flake8 .
    - name: Lint with black
      run: |
        pip install black
        black --check .

  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/setup-python@v1
      with:
        python-version: "3.x"
    - uses: actions/checkout@v1
      # - name: Install dependencies
      #   run: sudo apt-get install -y python3-pip python3-vtk7
    - name: Install package
      run: |
        pip install --upgrade pip
        pip install .[all]
    - name: Test with pytest
      run: |
        pip install pytest pytest-cov
        pip install -r test_requirements.txt
        cd test/ && MPLBACKEND=Agg pytest --cov quadpy
    - name: Submit to codecov
      run: bash <(curl -s https://codecov.io/bash)

name: test

on: [push]

jobs:
  lint:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/setup-python@v1
      with:
        python-version: "3.x"
    - uses: actions/checkout@v1
    - name: Lint with flake8
      run: |
        pip install --upgrade pip
        pip install flake8
        flake8 .
    - name: Lint with black
      run: |
        pip install black
        black --check .

  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/setup-python@v1
      with:
        python-version: "3.x"
    - uses: actions/checkout@v1
    - name: Install dependencies
      run: sudo apt-get install -y python3-pybind11 libeigen3-dev  # python3-vtk7
    - name: Install package
      run: |
        pip install --upgrade pip
        pip install .[all]
    - name: Test with pytest
      run: |
        pip install pytest pytest-cov
        pip install -r test_requirements.txt
        cd test/ && MPLBACKEND=Agg pytest --cov quadpy
    - name: Submit to codecov
      run: bash <(curl -s https://codecov.io/bash)

Revert "gh-actions: don't install pybind11, eigen"
Revert "gh-actions: don't install pybind11, eigen"

This reverts commit a45597bab5c0d0e0b1096ca40394dc95b9ff37a2.
