Skip to content

middlemen-com/Upgrade-to-Python3

 
 

Repository files navigation

Upgrade to Python3

A GitHub Action that will upgrade your Python code to Python 3

This action uses flake8 to know if your Python code has syntax errors.

If syntax errors are found then this Action uses futurize create pull requests that gradually upgrade that code to be more compatible with Python 3. After this Action has run, return to your repo and look for a "modernize-Python-2-codes" branch in your repo. If this branch exists then select it and make pull request and make sure that your automate tests pass before merging the pull request. After merging, delete the "modernize-Python-2-codes" branch so that the process can be repeated.

Example workflow (Put the following text into your repo's .github/main.workflow):

workflow "New workflow" {
  on = "push"
  resolves = ["Upgrade to Python 3"]
}

action "Upgrade to Python 3" {
  secrets = ["GITHUB_TOKEN"]
  uses = "cclauss/Upgrade-to-Python3@master"
}

Packages

No packages published

Languages

  • Python 96.1%
  • Dockerfile 2.7%
  • HCL 1.2%