In order to get past pipeline/step runs, you can use the get_pipeline method in combination with the last_run property or just index into the runs:
from zenml.client import Clientclient =Client()# Retrieve a pipeline by its namep = client.get_pipeline("mlflow_train_deploy_pipeline")# Get the latest run of this pipelinelatest_run = p.last_run# Alternatively you can also access runs by index or namefirst_run = p[0]