Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/asottile/workflows
reusable github workflows / actions
https://github.com/asottile/workflows
Last synced: 27 days ago
JSON representation
reusable github workflows / actions
- Host: GitHub
- URL: https://github.com/asottile/workflows
- Owner: asottile
- Created: 2022-12-27T21:41:17.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-29T01:21:15.000Z (2 months ago)
- Last Synced: 2024-12-11T00:06:55.340Z (29 days ago)
- Size: 104 KB
- Stars: 20
- Watchers: 1
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome_ai_agents - Workflows - reusable github workflows / actions (Building / Workflows)
- awesome_ai_agents - Workflows - reusable github workflows / actions (Building / Workflows)
README
[![build status](https://github.com/asottile/workflows/actions/workflows/main.yml/badge.svg)](https://github.com/asottile/workflows/actions/workflows/main.yml)
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/asottile/workflows/main.svg)](https://results.pre-commit.ci/latest/github/asottile/workflows/main)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 of `tox` environment names to run
- `os`: (default: `ubuntu-latest`) passed through to [`runs-on`]
- `arch`: (json list of strings, default: '[""]') only used on windows to
select the python executable
- `wheel-tags`: (default: `false`) whether to make a `wheels` artifact on tags
- `submodules`: (default: `false`) _new in v1.1.0_ passed along to
[`actions/checkout`]this action auto-detects python versions via the env name. here are some
examples:- `py310`: will run with python 3.10
- `py310-wat`: will also run with python 3.10
- `pypy3`: will run using pypy 3.9
- `wat`: will run with python 3.13
- `py314`: will install nightly 3.14 from [deadsnakes] and use that[`runs-on`]: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idruns-on
[deadsnakes]: https://github.com/deadsnakes/action
[`actions/checkout`]: https://github.com/actions/checkout#### example
```yaml
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
```yaml
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]
[way less slow]: https://github.com/actions/checkout/issues/1150
#### example
```yaml
steps:
- uses: asottile/workflows/.github/actions/[email protected]
```