Skip to content

Commit

Permalink
Generate workflow files with a Jinja template
Browse files Browse the repository at this point in the history
Fixes #4040
  • Loading branch information
ocelotl committed Jul 31, 2024
1 parent 51b7e4c commit 0430eb2
Show file tree
Hide file tree
Showing 11 changed files with 7,984 additions and 348 deletions.
2,200 changes: 2,200 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 0430eb2

Please sign in to comment.