Set of GitHub tools, workflows, etc:
Deploys Chalice application to AWS
Inputs:
stage
— Stage to deploy (Required)aws-region
— AWS region (Default:"us-west-2"
)python-version
— Python version (Default:"3.9"
)
Secrets:
GH_ACTIONS_SSH_PRIVATE_KEY
— Private SSH key to be able to clone the repos using SSH (Required)AWS_ACCESS_KEY_ID
— AWS Access Key ID (Required)AWS_SECRET_ACCESS_KEY
— AWS Secret Access Key (Required)
Example:
jobs:
analize:
uses: uglyunicorn-eh/prostir-github-tools/.github/workflows/python-chalice-deploy.yml@main
secrets: inherit
with:
stage: prod
Analizes code with pylint.
Inputs:
python-version
— Python version (Default:"3.9"
)
Secrets:
GH_ACTIONS_SSH_PRIVATE_KEY
— Private SSH key to be able to clone the repos using SSH (Required)
Example:
jobs:
analize:
uses: uglyunicorn-eh/prostir-github-tools/.github/workflows/python-pylint.yml@main
secrets: inherit
Analizes packages code with pylint.
Inputs:
python-version
— Python version (Default:"3.9"
)
Secrets:
GH_ACTIONS_SSH_PRIVATE_KEY
— Private SSH key to be able to clone the repos using SSH (Required)
Example:
jobs:
analize:
uses: uglyunicorn-eh/prostir-github-tools/.github/workflows/python-pylint-pkg.yml@main
secrets: inherit
Runs unit tests with pytest. If specified, uploads code coverage to https://codecove.io/
Inputs:
python-version
— Python version (Default:"3.9"
)upload-codecov
— Whenever it should upload coverage to Codecov. Iftrue
requires a secretCODECOV_TOKEN
(Default:false
)
Secrets:
GH_ACTIONS_SSH_PRIVATE_KEY
— Private SSH key to be able to clone the repos using SSH (Required)CODECOV_TOKEN
— Codecov token. Required ifupload-codecov
istrue
Example:
jobs:
test:
uses: uglyunicorn-eh/prostir-github-tools/.github/workflows/python-pytest.yml@main
secrets: inherit
with:
upload-codecov: true
Runs unit tests for package with pytest. If specified, uploads code coverage to https://codecove.io/
Inputs:
python-version
— Python version (Default:"3.9"
)upload-codecov
— Whenever it should upload coverage to Codecov. Iftrue
requires a secretCODECOV_TOKEN
(Default:false
)
Secrets:
GH_ACTIONS_SSH_PRIVATE_KEY
— Private SSH key to be able to clone the repos using SSH (Required)CODECOV_TOKEN
— Codecov token. Required ifupload-codecov
istrue
Example:
jobs:
test:
uses: uglyunicorn-eh/prostir-github-tools/.github/workflows/python-pytest-pkg.yml@main
secrets: inherit
with:
upload-codecov: true