# This workflow will install Python dependencies and run tests with a variety of Python versions

name: Continuous Integration

on: [push, pull_request]

jobs:
  build:

    runs-on: ubuntu-latest
    strategy:
      fail-fast: false
      matrix:
        python-version: [3.5, 3.6, 3.7, 3.8, 3.9, '3.10']

    steps:
    - uses: actions/checkout@v2
      with:
        submodules: recursive
    - name: Set up Python ${{ matrix.python-version }}
      uses: actions/setup-python@v2
      with:
        python-version: ${{ matrix.python-version }}
    - name: Install dependencies
      run: |
        python -m pip install --upgrade pip
        python -m pip install flake8 pytest pytest-cov==2.10.1 coverage==4.5.4
        if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
    - name: Install PyMatching
      run: |
        pip install -e .
    - name: Test with pytest
      run: |
        pytest tests src --cov=src --cov-report term
    - uses: codecov/codecov-action@v1

# This workflow will install Python dependencies and run tests with a variety of Python versions

name: Continuous Integration

on: [push, pull_request]

jobs:
  build:

    runs-on: ubuntu-latest
    strategy:
      fail-fast: false
      matrix:
        python-version: [3.6, 3.7, 3.8, 3.9, '3.10']

    steps:
    - uses: actions/checkout@v2
      with:
        submodules: recursive
    - name: Set up Python ${{ matrix.python-version }}
      uses: actions/setup-python@v2
      with:
        python-version: ${{ matrix.python-version }}
    - name: Install dependencies
      run: |
        python -m pip install --upgrade pip
        python -m pip install flake8 pytest pytest-cov==2.10.1 coverage==4.5.4
        if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
    - name: Install PyMatching
      run: |
        pip install -e .
    - name: Test with pytest
      run: |
        pytest tests src --cov=src --cov-report term
    - uses: codecov/codecov-action@v2

Remove 3.5 from CI, update codecov version
Remove 3.5 from CI, update codecov version
