Skip to content

Commit

Permalink
Generate workflow files with a Jinja template (#4041)
Browse files Browse the repository at this point in the history
* Generate workflow files with a Jinja template

Fixes #4040

* Update contrib SHA in tox.ini

* Update workflows

* Update workflows

* Update tox.ini contrib SHA

* Update tox.ini contrib sha
  • Loading branch information
ocelotl authored Aug 15, 2024
1 parent 9a20504 commit b2b133d
Show file tree
Hide file tree
Showing 11 changed files with 8,021 additions and 347 deletions.
2,229 changes: 2,229 additions & 0 deletions .github/workflows/contrib_0.yml

Large diffs are not rendered by default.

21 changes: 21 additions & 0 deletions .github/workflows/generate_workflows.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
from pathlib import Path

from generate_workflows_lib import (
generate_test_workflow,
generate_lint_workflow,
generate_contrib_workflow,
generate_misc_workflow
)

tox_ini_path = Path(__file__).parent.parent.parent.joinpath("tox.ini")
workflows_directory_path = Path(__file__).parent

generate_test_workflow(
tox_ini_path,
workflows_directory_path,
"ubuntu-latest",
"windows-latest",
)
generate_lint_workflow(tox_ini_path, workflows_directory_path)
generate_contrib_workflow(workflows_directory_path)
generate_misc_workflow(tox_ini_path, workflows_directory_path)
71 changes: 0 additions & 71 deletions .github/workflows/lint.yml

This file was deleted.

Loading

0 comments on commit b2b133d

Please sign in to comment.