From b8314ad7d0903fe53d7eef3b3bc261864492e2a0 Mon Sep 17 00:00:00 2001 From: "l.feng" <43399351+msclock@users.noreply.github.com> Date: Thu, 5 Dec 2024 14:01:20 +0800 Subject: [PATCH] chore: simplify nox command to template (#46) Signed-off-by: l.feng <43399351+msclock@users.noreply.github.com> --- .github/workflows/ci.yml | 4 ++-- noxfile.py | 2 +- .../workflows/ci.yml.jinja | 4 ++-- template/noxfile.py.jinja | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f78ee1f..156faa0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -62,7 +62,7 @@ jobs: run: pipx install copier==9.4.1 - name: Verify template - run: pipx run nox -s template_build + run: pipx run nox -s template - name: Test for consistency run: | @@ -178,7 +178,7 @@ jobs: run: pipx install copier==9.4.1 - name: Apply mkdocs - run: pipx run nox -s template_build -- -d docs_type=mkdocs + run: pipx run nox -s template -- -d docs_type=mkdocs - name: Checks the docs with warnings as errors run: pipx run nox -s docs -- --check diff --git a/noxfile.py b/noxfile.py index 42619c6..03a882f 100644 --- a/noxfile.py +++ b/noxfile.py @@ -94,7 +94,7 @@ def build(session: nox.Session) -> None: @nox.session(reuse_venv=True) -def template_build(session: nox.Session) -> None: +def template(session: nox.Session) -> None: """ Build template for the current repo only. """ diff --git a/template/[% if repo_platform == 'github' %].github[% endif %]/workflows/ci.yml.jinja b/template/[% if repo_platform == 'github' %].github[% endif %]/workflows/ci.yml.jinja index d724d0c..3e120b0 100644 --- a/template/[% if repo_platform == 'github' %].github[% endif %]/workflows/ci.yml.jinja +++ b/template/[% if repo_platform == 'github' %].github[% endif %]/workflows/ci.yml.jinja @@ -62,7 +62,7 @@ jobs: run: pipx install copier==9.4.1 - name: Verify template - run: pipx run nox -s template_build + run: pipx run nox -s template - name: Test for consistency run: | @@ -185,7 +185,7 @@ jobs: run: pipx install copier==9.4.1 - name: Apply mkdocs - run: pipx run nox -s template_build -- -d docs_type=mkdocs + run: pipx run nox -s template -- -d docs_type=mkdocs - name: Checks the docs with warnings as errors run: pipx run nox -s docs -- --check diff --git a/template/noxfile.py.jinja b/template/noxfile.py.jinja index 1b926fd..e937d78 100644 --- a/template/noxfile.py.jinja +++ b/template/noxfile.py.jinja @@ -115,7 +115,7 @@ def build(session: nox.Session) -> None: @nox.session(reuse_venv=True) -def template_build(session: nox.Session) -> None: +def template(session: nox.Session) -> None: """ Build template for the current repo only. """