name: __name__ Testing

on:
  workflow_dispatch:
  push:
    branches:
      - master
    paths:
      - src/bioservices/__name__.py
  pull_request:
    branches-ignore: []

jobs:
  build-linux:
    runs-on: ubuntu-latest
    strategy:
      max-parallel: 5
      matrix:
        python: [3.6, 3.7, 3.8]

    steps:
    - uses: actions/checkout@v2
    - name: Set up Python 3.X
      uses: actions/setup-python@v2
      with:
        python-version: ${{ matrix.python }}
    - name: Install the package itself and dependencies
      run: |
          pip install .
          pip install -r requirements_dev.txt

    - name: Test with pytest
      run: |
        pytest -n 1  --cov-report term --cov=bioservices.__name__ test/webservices/test___name__.py

