From 620d5c1741c437c1511b909f1f95745210e68bfb Mon Sep 17 00:00:00 2001 From: Maxim Tarasov Date: Wed, 24 Jan 2024 10:33:55 -0800 Subject: [PATCH 1/3] redirect command output using tee to make it visible in terminal --- .github/workflows/python-app-dev.yml | 2 +- .github/workflows/python-app-pr.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-app-dev.yml b/.github/workflows/python-app-dev.yml index eb55963..ca258dc 100644 --- a/.github/workflows/python-app-dev.yml +++ b/.github/workflows/python-app-dev.yml @@ -32,7 +32,7 @@ jobs: - name: Test with unittest continue-on-error: true run: | - python -m unittest discover Tests/test_NAL/ -p "test_*.py" -v > output-dev.txt + python -m unittest discover Tests/test_NAL/ -p "test_*.py" -v |& tee output-dev.txt - uses: actions/upload-artifact@v4 with: diff --git a/.github/workflows/python-app-pr.yml b/.github/workflows/python-app-pr.yml index 5ec8b9c..78a6046 100644 --- a/.github/workflows/python-app-pr.yml +++ b/.github/workflows/python-app-pr.yml @@ -32,7 +32,7 @@ jobs: - name: Test with unittest continue-on-error: true run: | - python -m unittest discover Tests/test_NAL/ -p "test_*.py" -v > output-pr.txt + python -m unittest discover Tests/test_NAL/ -p "test_*.py" -v |& tee output-pr.txt - name: Download workflow artifact uses: dawidd6/action-download-artifact@v3.0.0 From abc2057812493c53393569bf73fecf61479649ae Mon Sep 17 00:00:00 2001 From: Maxim Tarasov Date: Wed, 24 Jan 2024 10:40:45 -0800 Subject: [PATCH 2/3] temporarily adding commands for debugging --- .github/workflows/python-app-pr.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/python-app-pr.yml b/.github/workflows/python-app-pr.yml index 78a6046..c1f0316 100644 --- a/.github/workflows/python-app-pr.yml +++ b/.github/workflows/python-app-pr.yml @@ -48,6 +48,8 @@ jobs: - name: Compare test results run: | + ls + less output-pr.txt diff -u ./test-report/output-dev.txt output-pr.txt | diff2html -i stdin -F test-diff.html - uses: actions/upload-artifact@v4 From e0be2a024be472593532aaa0a5726e91b22ef7d9 Mon Sep 17 00:00:00 2001 From: Maxim Tarasov Date: Wed, 24 Jan 2024 10:45:58 -0800 Subject: [PATCH 3/3] remove debugging commands --- .github/workflows/python-app-pr.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/python-app-pr.yml b/.github/workflows/python-app-pr.yml index c1f0316..925e0fd 100644 --- a/.github/workflows/python-app-pr.yml +++ b/.github/workflows/python-app-pr.yml @@ -48,9 +48,7 @@ jobs: - name: Compare test results run: | - ls - less output-pr.txt - diff -u ./test-report/output-dev.txt output-pr.txt | diff2html -i stdin -F test-diff.html + diff -u output-dev.txt output-pr.txt | diff2html -i stdin -F test-diff.html - uses: actions/upload-artifact@v4 with: