CiNotebookJob#

class mobu.services.github_ci.ci_notebook_job.CiNotebookJob(github_storage, check_run, http_client, events, repo_manager, gafaelfawr_storage, logger)#

Bases: object

Runs changed notebooks and updates a GitHub CI check.

Parameters:
  • github_storage (GitHubStorage) – GitHub storage client.

  • check_run (CheckRun) – A GitHub storage check run.

  • http_client (AsyncClient) – Shared HTTP client.

  • events (Events) – Event publishers.

  • gafaelfawr_storage (GafaelfawrStorage) – Gafaelfawr storage client.

  • logger (BoundLogger) – Context logger.

  • repo_manager (RepoManager)

Methods Summary

run(user, scopes)

Run all relevant changed notebooks and report back to GitHub.

summarize()

Information about this job.

Methods Documentation

async run(user, scopes)#

Run all relevant changed notebooks and report back to GitHub.

Run only changed notebooks that aren’t excluded in the mobu config file in the repo. If there is no mobu config file, then don’t exclude any changed notebooks.

Parameters:
Return type:

None

summarize()#

Information about this job.

Return type:

CiJobSummary