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:
object
Responsible 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.
Prepares the mapping of Python versions to tox testenvs for use with 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.
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_gh_actions_python_versions
()[source] Prepares the mapping of Python versions to tox testenvs for use with GitHub Actions.
New in version 2020.12.21.
-
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
bumpversion
to the desired repo.
-
get_bumpversion_filenames
(templates)[source] Returns an iterable of filenames to have the version number bumped in.
New in version 2021.3.8.
-
make_actions_deploy_conda
(repo_path, templates)[source] Add script to build Conda package and deploy to Anaconda.
-
make_conda_actions_ci
(repo_path, templates)[source] Add configuration for testing conda packages on GitHub Actions to the desired repo.
-
make_github_ci
(repo_path, templates)[source] Add configuration for GitHub Actions to the desired repo.
-
make_github_docs_test
(repo_path, templates)[source] Add configuration for GitHub Actions documentation check to the desired repo.
-
make_github_manylinux
(repo_path, templates)[source] Add configuration for GitHub Actions manylinux wheel builds the desired repo.