fix: only run circleCI step on master branch
@@ -325,6 +325,7 @@ commands:
--junit-xml="<<parameters.junit-path>>" \
$(< /tmp/tests-to-run)
- upload-test-job:
+ only_on_branch: master
test_results_path: <<parameters.junit-path>>
@@ -776,9 +777,16 @@ commands:
upload-test-job:
parameters:
+ only_on_branch:
+ type: string
+ default: ""
test_results_path:
type: string
default: ""
+ steps:
+ - when:
+ condition:
+ equal: [ <<parameters.only_on_branch>>, << pipeline.git.branch >> ]
steps:
- run:
name: Test run success -> uploading results to Determined CI
@@ -1317,6 +1325,7 @@ jobs:
executor: determinedai/cimg-base:stable
- run: pytest -vv -s --junit-xml="/tmp/test-results/examples.xml" --durations=0 examples/tests
- upload-test-job:
+ only_on_branch: master
test_results_path: /tmp/test-results/examples.xml
test-cli:
