workflows
workflows copied to clipboard
reusable github workflows / actions
workflows
reusable github workflows / actions
job templates
.github/workflows/tox.yml
new in v1.0.0
this job template will install python and invoke tox
parameters
env: (json list of strings) the list oftoxenvironment names to runos: (default:ubuntu-latest) passed through toruns-onarch: (json list of strings, default: '[""]') only used on windows to select the python executablewheel-tags: (default:false) whether to make awheelsartifact on tagssubmodules: (default:false) new in v1.1.0 passed along toactions/checkout
this action auto-detects python versions via the env name. here are some examples:
py310: will run with python 3.10py310-wat: will also run with python 3.10pypy3: will run using pypy 3.9wat: will run with python 3.12py313: will install nightly 3.13 from deadsnakes and use that
example
jobs:
main:
uses: asottile/workflows/.github/workflows/[email protected]
with:
env: '["py310", "py311", "pypy3"]'
actions
.github/actions/latest-git
new in v1.2.0
install the latest version of git
example
steps:
- uses: asottile/workflows/.github/actions/[email protected]
.github/actions/fast-checkout
new in v1.3.0
a replacement for actions/checkout that is way less slow
example
steps:
- uses: asottile/workflows/.github/actions/[email protected]