diff --git a/.github/workflows/ci_metax.yml b/.github/workflows/ci_metax.yml index ecda881ad..f861ad516 100644 --- a/.github/workflows/ci_metax.yml +++ b/.github/workflows/ci_metax.yml @@ -29,5 +29,5 @@ jobs: job_name: paddle_fastdeploy_metax_smoketest username: fastdeploy_builder api_token: ${{ secrets.METAX_JENKINS_API_TOKEN }} - pr_num: ${{ github.event.pull_request.number }} - project_branch: ${{ github.event.pull_request.head.ref }} + pr_number: ${{ github.event.pull_request.number }} + project_branch: ${{ github.event.pull_request.base.ref }} diff --git a/scripts/run_ci_metax.sh b/scripts/run_ci_metax.sh index 705693cb7..f4331829b 100644 --- a/scripts/run_ci_metax.sh +++ b/scripts/run_ci_metax.sh @@ -5,6 +5,7 @@ tests_path="$DIR/../tests/" export PYTEST_INI="$DIR/../tests/cov_pytest.ini" run_path=$( realpath "$DIR/../") + export COVERAGE_FILE=${COVERAGE_FILE:-$DIR/../coveragedata/.coverage} export COVERAGE_RCFILE=${COVERAGE_RCFILE:-$DIR/../scripts/.coveragerc}