Skip to content

Commit

Permalink
docs: document testing and fix example wdl (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
morsecodist authored Jan 14, 2022
1 parent cd6d029 commit 945b3fd
Showing 1 changed file with 37 additions and 4 deletions.
41 changes: 37 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,12 @@ task add_world {
}
command <<<
cat {hello} > out.txt
cat world >> out.txt
cat ~{hello} > out.txt
echo world >> out.txt
>>>
output {
File out = out.txt
File out = "out.txt"
}
runtime {
Expand Down Expand Up @@ -132,4 +132,37 @@ response = client.start_execution(
)
```

Once your step function is complete your output should be at `s3://my-test-app-swipe-workspace/outputs/out.txt`. Note that `out.txt` came from the WDL workflow.
Once your step function is complete your output should be at `s3://my-test-app-swipe-workspace/outputs/hello/out.txt`. Note that `out.txt` came from the WDL workflow.

## Development

### Requirements

- Terraform
- Python 3.9
- Docker + Docker Compose

### Running tests

Setup python dependencies:

```bash
virtualenv .venv
source .venv/bin/activate
pip install -r requirements.txt
```

Bring up mock AWS infrastructure:

```bash
docker-compose up -d
source environment.test
make deploy-mock
```

Run the tests:

```bash
make test
```

0 comments on commit 945b3fd

Please sign in to comment.