From c685f37daa1a621eae6b8b940496383397afa094 Mon Sep 17 00:00:00 2001 From: Michael J Longfritz Date: Fri, 16 Aug 2024 12:35:39 -0400 Subject: [PATCH 1/4] Adds test output existence check --- .github/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 87a35c4..6dc4c9e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,7 +28,9 @@ jobs: # compile sipnet - name: compile sipnet - run: make + run: | + make + if (hashFiles('**/niwot.out') && ) # run single sipnet run - name: sipnet on Sites/Niwot/niwot From e4bfe5e6e8b13a3571578927d542ea68d17b8219 Mon Sep 17 00:00:00 2001 From: Michael J Longfritz Date: Fri, 16 Aug 2024 12:45:21 -0400 Subject: [PATCH 2/4] Again, but remember that VS Code does not autosave --- .github/workflows/ci.yml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6dc4c9e..a4fe004 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,10 +28,21 @@ jobs: # compile sipnet - name: compile sipnet - run: | - make - if (hashFiles('**/niwot.out') && ) + run: make + + # remove existing test output file + - name: Remove File + uses: JesseTG/rm@v1.0.3 + with: + path: Sites/Niwot/niwot.out # run single sipnet run - name: sipnet on Sites/Niwot/niwot run: ./sipnet + + # check output of test + - name: fail if no niwot output exists + if: ${{ hashFiles('Sites/Niwot/niwot.out') == '' }} + run: | + echo "::error title={No Output}::Test run for Niwot site failed to produce output" + exit 1 From 7c65b5901a18b90e16ecca6b2476cd874686c3a0 Mon Sep 17 00:00:00 2001 From: Alomir Date: Fri, 16 Aug 2024 12:59:46 -0400 Subject: [PATCH 3/4] Tries straightforward rm to delete --- .github/workflows/ci.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a4fe004..99c9007 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,10 +31,8 @@ jobs: run: make # remove existing test output file - - name: Remove File - uses: JesseTG/rm@v1.0.3 - with: - path: Sites/Niwot/niwot.out + - name: Remove Niwout Output File + run: rm -f Sites/Niwot/niwot.out # run single sipnet run - name: sipnet on Sites/Niwot/niwot From 2d90752aedd881c1c7d11b25ddb33699b25e27e9 Mon Sep 17 00:00:00 2001 From: Alomir Date: Fri, 16 Aug 2024 13:19:47 -0400 Subject: [PATCH 4/4] Changes 'rm -f' to just 'rm' --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 99c9007..538f434 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,7 +32,7 @@ jobs: # remove existing test output file - name: Remove Niwout Output File - run: rm -f Sites/Niwot/niwot.out + run: rm Sites/Niwot/niwot.out # run single sipnet run - name: sipnet on Sites/Niwot/niwot