name: Run tests and coverage

on: ["pull_request"]

jobs:
  build:
    name: Tests
    runs-on: ubuntu-latest
    strategy:
      matrix:
        python-version: [3.6]
        mongodb-version: ["3.6"]

    steps:
    # Check out Scout code
    - uses: actions/checkout@v2

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

    # Set up mongodb
    - name: Start MongoDB
      uses: wbari/start-mongoDB@v0.2
      with:
        mongoDBVersion: ${{ matrix.mongodb-version}}

    - name: Production Dependencies
      run: |
        python -m pip install --upgrade pip
        pip install cython
        pip install numpy
        pip install .
        pip check

    - name: Dev Dependencies
      run: |
        pip install pytest

    - name: Coveralls Dependencies
      run: |
        pip install pytest-cov coveralls

    - name: Test with pytest & Coveralls
      run: |
        pytest --cov=loqusdb/
        coveralls
      env:
        GITHUB: 1
        COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}

name: Run tests and coverage

on: ["pull_request"]

jobs:
  build:
    name: Tests
    runs-on: ubuntu-latest
    strategy:
      matrix:
        python-version: [3.6]
        mongodb-version: ["3.6"]

    steps:
    # Check out Scout code
    - uses: actions/checkout@v2

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

    # Set up mongodb
    - name: Start MongoDB
      uses: wbari/start-mongoDB@v0.2
      with:
        mongoDBVersion: ${{ matrix.mongodb-version}}

    - name: Production Dependencies
      run: |
        python -m pip install --upgrade pip
        pip install cython
        pip install numpy
        pip install -e .
        pip check

    - name: Dev Dependencies
      run: |
        pip install pytest

    - name: Coveralls Dependencies
      run: |
        pip install pytest-cov coveralls

    - name: Test with pytest & Coveralls
      run: |
        pytest --cov=loqusdb/ tests/
        coveralls
      env:
        GITHUB: 1
        COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}

Test to install editables for coverage to work
Test to install editables for coverage to work
