From cd0ac7c021f8f540630667a0fb3c1a6e4644c3dc Mon Sep 17 00:00:00 2001 From: Venkat Malladi Date: Thu, 25 Apr 2024 13:57:34 -0500 Subject: [PATCH] Try new paths. --- .github/workflows/unit.yml | 15 +++++++++------ tests/test.hello.yaml | 7 +++++-- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/.github/workflows/unit.yml b/.github/workflows/unit.yml index 9950388..bd90972 100644 --- a/.github/workflows/unit.yml +++ b/.github/workflows/unit.yml @@ -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 @@ -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' \ No newline at end of file diff --git a/tests/test.hello.yaml b/tests/test.hello.yaml index f9d9e0f..1516a09 100644 --- a/tests/test.hello.yaml +++ b/tests/test.hello.yaml @@ -1,2 +1,5 @@ -- name: hello - command: miniwdl run -i tests/inputs/hello.inputs.json -d test-output/ --task hello hello.wdl \ No newline at end of file +- name: test-hello + command: miniwdl run -i tests/inputs/hello.inputs.json -d test-output/ --task hello hello.wdl + stdout: + contains: + - "hello Test!" \ No newline at end of file