From d280ff449ac9c72c8e2706b11b1fbfcc4c1593d5 Mon Sep 17 00:00:00 2001 From: quyuan Date: Thu, 25 Apr 2024 10:48:09 +0800 Subject: [PATCH] add cli test --- .github/workflows/cli.yml | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/.github/workflows/cli.yml b/.github/workflows/cli.yml index 6d267ebb..2c3ad290 100644 --- a/.github/workflows/cli.yml +++ b/.github/workflows/cli.yml @@ -46,19 +46,7 @@ jobs: export https_proxy="" - name: get-benchmark-result run: | - echo "start test" + echo $CI_PROJECT_DIR pytest -v tests/test_cli/test_cli.py -s - - notify_to_feishu: - if: ${{ always() && !cancelled() && contains(needs.*.result, 'failure') && (github.ref_name == 'master') }} - needs: [pdf-test] - runs-on: pdf - steps: - - name: notify - run: | - curl ${{ secrets.WEBHOOK_URL }} -H 'Content-Type: application/json' -d '{ - "msgtype": "text", - "text": { - "content": "'${{ github.repository }}' GitHubAction Failed!\n 细节请查看:https://github.com/'${{ github.repository }}'/actions/runs/'${GITHUB_RUN_ID}'" - } - }' + +