name: Test

on: ['push', 'pull_request']

jobs:
  test:
    runs-on: ubuntu-latest

    strategy:
      matrix:
        python-version: ['3.5', '3.6', '3.7', '3.8', '3.9']

    steps:
    - uses: actions/checkout@v2

    - name: Set up Python ${{ matrix.python-version }}
      uses: actions/setup-python@v1
      with:
        python-version: ${{ matrix.python-version }}

    - name: Install Dependencies
      run: |
        python3 -m pip install -U pip
        python3 -m pip install -r requirements.txt
        python3 -m pip install pytest pytest-cov
        python3 -m pip install .

    - name: Lint codebase
      run: pylint_runner

    - name: Run tests
      run: python3 -m pytest --cov=pylint_runner tests/

    - uses: codecov/codecov-action@v2
      with:
        files: ./.coverage

name: Test

on: ['push', 'pull_request']

jobs:
  test:
    runs-on: ubuntu-latest

    strategy:
      matrix:
        python-version: ['3.5', '3.6', '3.7', '3.8', '3.9']

    steps:
    - uses: actions/checkout@v2

    - name: Set up Python ${{ matrix.python-version }}
      uses: actions/setup-python@v1
      with:
        python-version: ${{ matrix.python-version }}

    - name: Install Dependencies
      run: |
        python3 -m pip install -U pip
        python3 -m pip install -r requirements.txt
        python3 -m pip install pytest pytest-cov
        python3 -m pip install .

    - name: Lint codebase
      run: pylint_runner

    - name: Run tests
      run: python3 -m pytest --cov=pylint_runner --cov-report=xml tests/

    - uses: codecov/codecov-action@v2

Fix generating coverage.xml for codecov
Fix generating coverage.xml for codecov

Signed-off-by: Matthew Peveler <ceb7192332cc0210660ce4c985cae5ba0e431884@gmail.com>
