From a4b54509d2d610ebf9cc7aeb98adc0af2b1c93db Mon Sep 17 00:00:00 2001 From: Zhong Jianxin Date: Wed, 28 Aug 2024 19:24:39 +0800 Subject: [PATCH] CI/test: Display transcribe time in annotations --- .github/workflows/test.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2aa9dfc..57dad47 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -62,6 +62,8 @@ jobs: nix -L develop .#${{ matrix.shell }} --profile ~/.local/state/nix/profiles/shell --command true - name: Test transcribe run: | - nix -L develop .#${{ matrix.shell }} --command ./PianoTrans.py --cli test/cut_liszt.opus test/cut_liszt.opus test/cut_liszt.opus + nix -L develop .#${{ matrix.shell }} --command ./PianoTrans.py --cli test/cut_liszt.opus test/cut_liszt.opus test/cut_liszt.opus | tee /tmp/transcribe.log + time=$(awk 'BEGIN {ORS=" "} /Transcribe time:/ {print $3}' /tmp/transcribe.log) + echo "::notice::Transcribe time: $time" test -e test/cut_liszt.opus.mid - uses: azuwis/actions/nix/post@main