Skip to content

Commit

Permalink
Try new paths.
Browse files Browse the repository at this point in the history
  • Loading branch information
vsmalladi committed Apr 25, 2024
1 parent 1780eb8 commit cd0ac7c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ defaults:
jobs:
miniwdl_check:
runs-on: ubuntu-latest
strategy:
matrix:
test:
- sanity
- test-hello
steps:
- uses: actions/checkout@v4
- name: Set up Python
Expand All @@ -25,23 +30,21 @@ jobs:
- name: Run unit tests
# Use --symlink to limit disk usage.
run: >-
pytest --keep-workflow-wd --git-aware
pytest --keep-workflow-wd --git-aware --tag ${{ matrix.test }}
--symlink tests/ --basetemp ~/temp
- name: Check files
run: ls -ltr /home/runner/temp/
- name: Check miniwdl log in case of failure.
if: ${{ failure() }}
# Get the last 1000 lines of the miniwdl log to catch the error.
run: bash -c 'tail -n 1000 ~/temp/pytest_workflow_*/*/log.out'
run: bash -c 'tail -n 1000 /home/runner/temp/pytest_workflow_*/*/log.out'
- name: Check job stderr messages in case of failure
if: ${{ failure() }}
run: >-
bash -c '
for file in $(find ~/temp -name stderr);
for file in $(find /home/runner/temp/ -name stderr);
do echo $file; cat $file; done'
- name: Check job stdout messages in case of failure
if: ${{ failure() }}
run: >-
bash -c '
for file in $(find ~/temp -name stdout);
for file in $(find/home/runner/temp/ -name stdout);
do echo $file; cat $file; done'
7 changes: 5 additions & 2 deletions tests/test.hello.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
- name: hello
command: miniwdl run -i tests/inputs/hello.inputs.json -d test-output/ --task hello hello.wdl
- name: test-hello
command: miniwdl run -i tests/inputs/hello.inputs.json -d test-output/ --task hello hello.wdl
stdout:
contains:
- "hello Test!"

0 comments on commit cd0ac7c

Please sign in to comment.