This would default to working_directory but you could set them separately when needed:
checkout_directory: ~/project
working_directory: ~/project/src