ci_cd
Manage configuration files for continuous integration / continuous deployment.
Classes:
|
Responsible for creating, updating and removing GitHub Actions workflows. |
Functions:
|
Add configuration for |
|
Returns an iterable of filenames to have the version number bumped in. |
|
Add script to build Conda package and deploy to Anaconda. |
|
Add script to close milestones on release. |
|
Add configuration for testing conda packages on GitHub Actions to the desired repo. |
|
Add configuration for GitHub Actions to the desired repo. |
|
Add configuration for GitHub Actions documentation check to the desired repo. |
|
Add configuration for the Flake8 GitHub Action. |
|
Add configuration for GitHub Actions manylinux wheel builds the desired repo. |
|
Add configuration for the mypy GitHub Action. |
|
Add configuration for the OctoCheese GitHub Action. |
-
class
ActionsManager(repo_path, templates)[source] Bases:
objectResponsible for creating, updating and removing GitHub Actions workflows.
- Parameters
repo_path (
Path) – Path to the repository root.templates (
Environment)
New in version 2020.12.18.
Methods:
Determines the matrix of Python versions used in GitHub Actions.
Returns the Python requirements to run tests for on Linux.
Returns the Python versions to run tests for on Linux.
Returns the Python requirements to run tests for on Linux.
Returns the Python requirements to run tests for on macOS.
Returns the Python versions to run tests for on macOS.
get_mypy_requirements(platform)Returns the Python requirements to run tests for on the given platform.
Returns the Python requirements to run tests for on Windows.
Returns the Python versions to run tests for on Windows.
Create, update or remove the flake8 action, as appropriate.
Create, update or remove the Linux action, as appropriate.
Create, update or remove the macOS action, as appropriate.
Create, update or remove the mypy action, as appropriate.
Create, update or remove the RustPython action, as appropriate.
Create, update or remove the Windows action, as appropriate.
-
get_gh_actions_matrix()[source] Determines the matrix of Python versions used in GitHub Actions.
New in version 2022.4.4.
-
get_mypy_requirements(platform)[source] Returns the Python requirements to run tests for on the given platform.
-
make_flake8()[source] Create, update or remove the flake8 action, as appropriate.
New in version 2021.8.11.
- Return type
-
make_mypy()[source] Create, update or remove the mypy action, as appropriate.
New in version 2020.1.27.
- Return type
-
ensure_bumpversion(repo_path, templates)[source] Add configuration for
bumpversionto the desired repo.https://pypi.org/project/bumpversion/
- Parameters
repo_path (
Path) – Path to the repository root.templates (
Environment)
- Return type
-
get_bumpversion_filenames(repo_path, templates)[source] Returns an iterable of filenames to have the version number bumped in.
New in version 2021.3.8.
- Parameters
repo_path (
Path)templates (
Environment)
- Return type
-
make_actions_deploy_conda(repo_path, templates)[source] Add script to build Conda package and deploy to Anaconda.
- Parameters
repo_path (
Path) – Path to the repository root.templates (
Environment)
- Return type
-
make_actions_milestones(repo_path, templates)[source] Add script to close milestones on release.
- Parameters
repo_path (
Path) – Path to the repository root.templates (
Environment)
- Return type
-
make_conda_actions_ci(repo_path, templates)[source] Add configuration for testing conda packages on GitHub Actions to the desired repo.
- Parameters
repo_path (
Path) – Path to the repository root.templates (
Environment)
- Return type
-
make_github_ci(repo_path, templates)[source] Add configuration for GitHub Actions to the desired repo.
- Parameters
repo_path (
Path) – Path to the repository root.templates (
Environment)
- Return type
-
make_github_docs_test(repo_path, templates)[source] Add configuration for GitHub Actions documentation check to the desired repo.
- Parameters
repo_path (
Path) – Path to the repository root.templates (
Environment)
- Return type
-
make_github_flake8(repo_path, templates)[source] Add configuration for the Flake8 GitHub Action.
- Parameters
repo_path (
Path) – Path to the repository root.templates (
Environment)
- Return type
-
make_github_manylinux(repo_path, templates)[source] Add configuration for GitHub Actions manylinux wheel builds the desired repo.
- Parameters
repo_path (
Path) – Path to the repository root.templates (
Environment)
- Return type
-
make_github_mypy(repo_path, templates)[source] Add configuration for the mypy GitHub Action.
- Parameters
repo_path (
Path) – Path to the repository root.templates (
Environment)
- Return type