Skip to content

Fix tests and whatnot #827

Fix tests and whatnot

Fix tests and whatnot #827

Workflow file for this run

# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Node.js CI with SAM
on: [push, pull_request]
jobs:
linterWithESLint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: 12.x
- run: npm install
- run: npm run lint
testWithSAMCLI:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install aws-sam-cli
- name: Test with SAM CLI
working-directory: ./upsertGitHubTag
run: |
sam local invoke HelloWorldFunction -e events/event.json -n env.json &> output.txt
grep "Valid push event" output.txt
- name: Test wdl parsing with SAM CLI build and invoke
working-directory: ./wdl-parsing
run: |
sam build --use-container
sam local invoke WDLParsingFunction -e events/event.json &> output.txt
grep "statusCode\":200" output.txt
- name: Test Nextflow parsing with SAM CLI build (no invoke)
working-directory: ./nextflow-parsing
# SAM build also runs the Java tests
run: |
sam build --use-container
- name: Build CWL packing with SAM CLI build (no invoke, no test)
working-directory: ./cwlpack
run: sam build --use-container
- name: Test CWL packing with pytest
working-directory: ./cwlpack
run: |
pip install -r tests/requirements.txt --user
pip install -r cwl_pack_function/requirements.txt --user
python -m pytest tests/unit -v
pylint cwl_pack_function
pylint tests