@@ -78,7 +78,6 @@ Example:
7878 - linux: py39
7979 - macos: py38-docs
8080 name: build_docs
81- - windows: py310-conda
8281
8382 The name of the GitHub Actions job can be changed with the ``name ``
8483option as shown above. By default, ``name `` will be the name of the tox
@@ -545,6 +544,71 @@ same repository, or when using a non-standard project layout.
545544 envs : |
546545 - linux: py312
547546
547+ fill
548+ ^^^^
549+
550+ Automatically add tox environments for each Python version currently supported
551+ by your package. The supported versions are determined by reading the
552+ ``requires-python `` field from your package's ``pyproject.toml `` file
553+ (conforming to PEP 621) and cross-referencing with currently maintained Python
554+ versions from https://endoflife.date.
555+
556+ Default is ``false ``.
557+
558+ .. code :: yaml
559+
560+ uses : OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@v1
561+ with :
562+ fill : true
563+ envs : |
564+ - linux: pep8
565+ pytest: false
566+
567+ In the above example, if your package's ``pyproject.toml `` specifies
568+ ``requires-python = ">=3.10" ``, and Python 3.10, 3.11, 3.12, and 3.13 are
569+ currently maintained, the workflow will automatically add ``py310 ``, ``py311 ``,
570+ ``py312 ``, and ``py313 `` environments on Linux in addition to the ``pep8 ``
571+ environment.
572+
573+ fill_platforms
574+ ^^^^^^^^^^^^^^
575+
576+ Platforms to use when generating environments with ``fill ``. This is a
577+ comma-separated list of platforms. Default is ``linux `` only.
578+
579+ .. code :: yaml
580+
581+ uses : OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@v1
582+ with :
583+ fill : true
584+ fill_platforms : linux,macos,windows
585+ envs : |
586+ - linux: pep8
587+ pytest: false
588+
589+ This will create tox environments for each supported Python version on all
590+ three platforms.
591+
592+ fill_factors
593+ ^^^^^^^^^^^^
594+
595+ Tox factors to add to the automatically generated environments from ``fill ``.
596+ This is a comma-separated list of factors. Default is none.
597+
598+ .. code :: yaml
599+
600+ uses : OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@v1
601+ with :
602+ fill : true
603+ fill_factors : test,cov
604+ envs : |
605+ - linux: pep8
606+ pytest: false
607+
608+ If your package supports Python 3.11 and 3.12, this will generate environments
609+ like ``py311-test-cov `` and ``py312-test-cov `` instead of just ``py311 `` and
610+ ``py312 ``.
611+
548612Secrets
549613~~~~~~~
550614
0 commit comments