name: Testing

on: [push, pull_request]

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2
    - uses: actions/setup-python@v4
      with:
        python-version: '3.8'

    - name: Install Dependencies
      run: pip install -r requirements-test.txt

    - name: CWL Validation
      working-directory: tests
      run: |
        bash cwl-validation.sh

    - name: Unit tests for the workflows and tools
      working-directory: tests
      run: |
        bash cwltest.sh
