Skip to content

Commit

Permalink
always show skipped reasons
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurZucker committed Apr 28, 2024
1 parent a502cc1 commit ca14571
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .circleci/create_circleci_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,8 @@ def to_dict(self):
test_command = f"({test_command} | tee tests_output.txt) || true"
steps.append({"run": {"name": "Run tests", "command": test_command}})

steps.append({"run": {"name": "Show skip reasons", "command": f"python3 .circleci/parse_test_outputs.py --file ~/transformers/tests_output.txt"}})

# Deal with errors
check_test_command = f'if [ -s reports/{self.job_name}/errors.txt ]; '
check_test_command += 'then echo "Some tests errored out!"; echo ""; '
Expand Down Expand Up @@ -222,7 +224,6 @@ def to_dict(self):

steps.append({"run": {"name": "Check test results", "command": check_test_command}})

steps.append({"run": {"name": "Show skip reasons", "command": f"python3 .circleci/parse_test_outputs.py --file ~/transformers/tests_output.txt"}})
steps.append({"store_test_results": {"path": "test-results"}})

steps.append({"store_artifacts": {"path": "~/transformers/tests_output.txt"}})
Expand Down

0 comments on commit ca14571

Please sign in to comment.