Skip to content

Commit

Permalink
add cli test
Browse files Browse the repository at this point in the history
  • Loading branch information
quyuan committed Apr 25, 2024
1 parent 413603e commit d280ff4
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions .github/workflows/cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}'"
}
}'

0 comments on commit d280ff4

Please sign in to comment.