Skip to content

uglyunicorn-eh/prostir-github-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 

Repository files navigation

Prostir GitHub Tools

Set of GitHub tools, workflows, etc:

Workflows

python-chalice-deploy

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

python-pylint

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

python-pylint-pkg

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

python-pytest

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. If true requires a secret CODECOV_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 if upload-codecov is true

Example:

jobs:
  test:
    uses: uglyunicorn-eh/prostir-github-tools/.github/workflows/python-pytest.yml@main
    secrets: inherit
    with:
      upload-codecov: true

python-pytest-pkg

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. If true requires a secret CODECOV_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 if upload-codecov is true

Example:

jobs:
  test:
    uses: uglyunicorn-eh/prostir-github-tools/.github/workflows/python-pytest-pkg.yml@main
    secrets: inherit
    with:
      upload-codecov: true