https://github.com/tox-dev/workflow
https://github.com/tox-dev/workflow
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/tox-dev/workflow
- Owner: tox-dev
- License: mit
- Created: 2021-11-11T15:37:22.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-10-07T13:50:53.000Z (over 3 years ago)
- Last Synced: 2025-01-18T09:32:34.912Z (over 1 year ago)
- Size: 32.2 KB
- Stars: 4
- Watchers: 6
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.rst
Awesome Lists containing this project
README
# One (Reusable) Tox Workflow To Rule Them All
This repository holds a centrally maintained test matrix for tox-based
projects.
## Howto
The example use is demonstrated below. You can start by provisioning a
file at the path `.github/workflows/ci-cd.yml` in your repository.
```yaml
---
name: ๐งช
on:
pull_request:
push:
schedule:
- cron: 1 0 * * * # Run daily at 0:01 UTC
concurrency:
group: >-
${{
github.workflow
}}-${{
github.event.pull_request.number || github.sha
}}
cancel-in-progress: true
jobs:
tox-matrix:
name: >- # Short name for UI, or use ๐งโ๐ป, it's even shorter
[m]
# REPRODUCIBILITY NOTE: Replace the `main` version with a stable tag
uses: tox-dev/workflow/.github/workflows/tox.yml@main
with: # all of these inputs are absolutely optional
max-python: # Python maximum, formated as MAJOR.MINOR
min-python: # Python minimum, formated as MAJOR.MINOR
tox-target: # Regex to filter the detected tox envs
tox-version: # Tox PyPI package w/ version spec for pip
YOLO: true # Rely on the unstable version of the underlying GHA
...
```
## Features
The reusable workflow has a job called `โ
check-tox` that waits for the
whole tox matrix. It can be used in the branch protection to avoid
having to list each of the dynamic check names.