name: build

on: [push, pull_request]

jobs:
  build:

    strategy:
      fail-fast: false
      matrix:
        os: [ubuntu-20.04]
        python-version: [2.7, 3.7, 3.8]
    runs-on: ${{ matrix.os }}

    steps:
    - uses: actions/checkout@v2
    - name: Install dependencies
      env:
        KEY_MODELLER: ${{ secrets.KEY_MODELLER }}
      run: |
        tools/install_deps.sh ~/deps ${{ matrix.python-version }}
    - name: Test
      run: |
        export PATH=~/deps/bin:$PATH
        eval "$(conda shell.bash hook)"
        conda activate python${{ matrix.python-version }}
        make
        py.test --cov=. --cov-branch --cov-report=xml -v .
    - uses: codecov/codecov-action@v1

name: build

on: [push, pull_request]

jobs:
  build:

    strategy:
      fail-fast: false
      matrix:
        os: [ubuntu-20.04]
        python-version: [2.7, 3.7, 3.8]
    runs-on: ${{ matrix.os }}

    steps:
    - uses: actions/checkout@v2
    - name: Install dependencies
      env:
        KEY_MODELLER: ${{ secrets.KEY_MODELLER }}
      run: |
        tools/install_deps.sh ~/deps ${{ matrix.python-version }}
    - name: Test
      run: |
        export PATH=~/deps/bin:$PATH
        eval "$(conda shell.bash hook)"
        conda activate python${{ matrix.python-version }}
        make
        pytest --cov=. --cov-branch --cov-report=xml --flake8 -v .
    - uses: codecov/codecov-action@v1

Test with flake8 during CI
Test with flake8 during CI
