From 55c4a2bfe9dce96d5d865aec711a697ce0381eb7 Mon Sep 17 00:00:00 2001 From: Stephen Kiely Date: Mon, 6 Jan 2025 15:08:28 -0600 Subject: [PATCH] Fix CI by pinning poetry 1.8.5 Also corrects the pull_request_template. --- .../pull_request_template.md | 0 .../pull_request_template.md | 0 .../pull_request_template.md | 0 .../.github/workflows/ci.yml | 16 ++++++++++++++++ 4 files changed, 16 insertions(+) rename nautobot-app-chatops/{{ cookiecutter.project_slug }}/.github/{PULL_REQUEST_TEMPLATE => }/pull_request_template.md (100%) rename nautobot-app-ssot/{{ cookiecutter.project_slug }}/.github/{PULL_REQUEST_TEMPLATE => }/pull_request_template.md (100%) rename nautobot-app/{{ cookiecutter.project_slug }}/.github/{PULL_REQUEST_TEMPLATE => }/pull_request_template.md (100%) diff --git a/nautobot-app-chatops/{{ cookiecutter.project_slug }}/.github/PULL_REQUEST_TEMPLATE/pull_request_template.md b/nautobot-app-chatops/{{ cookiecutter.project_slug }}/.github/pull_request_template.md similarity index 100% rename from nautobot-app-chatops/{{ cookiecutter.project_slug }}/.github/PULL_REQUEST_TEMPLATE/pull_request_template.md rename to nautobot-app-chatops/{{ cookiecutter.project_slug }}/.github/pull_request_template.md diff --git a/nautobot-app-ssot/{{ cookiecutter.project_slug }}/.github/PULL_REQUEST_TEMPLATE/pull_request_template.md b/nautobot-app-ssot/{{ cookiecutter.project_slug }}/.github/pull_request_template.md similarity index 100% rename from nautobot-app-ssot/{{ cookiecutter.project_slug }}/.github/PULL_REQUEST_TEMPLATE/pull_request_template.md rename to nautobot-app-ssot/{{ cookiecutter.project_slug }}/.github/pull_request_template.md diff --git a/nautobot-app/{{ cookiecutter.project_slug }}/.github/PULL_REQUEST_TEMPLATE/pull_request_template.md b/nautobot-app/{{ cookiecutter.project_slug }}/.github/pull_request_template.md similarity index 100% rename from nautobot-app/{{ cookiecutter.project_slug }}/.github/PULL_REQUEST_TEMPLATE/pull_request_template.md rename to nautobot-app/{{ cookiecutter.project_slug }}/.github/pull_request_template.md diff --git a/nautobot-app/{{ cookiecutter.project_slug }}/.github/workflows/ci.yml b/nautobot-app/{{ cookiecutter.project_slug }}/.github/workflows/ci.yml index 767b0498..10a98cce 100644 --- a/nautobot-app/{{ cookiecutter.project_slug }}/.github/workflows/ci.yml +++ b/nautobot-app/{{ cookiecutter.project_slug }}/.github/workflows/ci.yml @@ -25,6 +25,8 @@ jobs: uses: "actions/checkout@v4" - name: "Setup environment" uses: "networktocode/gh-action-setup-poetry-environment@v6" + with: + poetry-version: "1.8.5" - name: "Linting: ruff format" run: "poetry run invoke ruff --action format" ruff-lint: @@ -36,6 +38,8 @@ jobs: uses: "actions/checkout@v4" - name: "Setup environment" uses: "networktocode/gh-action-setup-poetry-environment@v6" + with: + poetry-version: "1.8.5" - name: "Linting: ruff" run: "poetry run invoke ruff --action lint" check-docs-build: @@ -47,6 +51,8 @@ jobs: uses: "actions/checkout@v4" - name: "Setup environment" uses: "networktocode/gh-action-setup-poetry-environment@v6" + with: + poetry-version: "1.8.5" - name: "Check Docs Build" run: "poetry run invoke build-and-check-docs" poetry: @@ -58,6 +64,8 @@ jobs: uses: "actions/checkout@v4" - name: "Setup environment" uses: "networktocode/gh-action-setup-poetry-environment@v6" + with: + poetry-version: "1.8.5" - name: "Checking: poetry lock file" run: "poetry run invoke lock --check" yamllint: @@ -69,6 +77,8 @@ jobs: uses: "actions/checkout@v4" - name: "Setup environment" uses: "networktocode/gh-action-setup-poetry-environment@v6" + with: + poetry-version: "1.8.5" - name: "Linting: yamllint" run: "poetry run invoke yamllint" check-in-docker: @@ -91,6 +101,8 @@ jobs: uses: "actions/checkout@v4" - name: "Setup environment" uses: "networktocode/gh-action-setup-poetry-environment@v6" + with: + poetry-version: "1.8.5" - name: "Constrain Nautobot version and regenerate lock file" env: INVOKE_{{ cookiecutter.app_name.upper() }}_LOCAL: "true" @@ -146,6 +158,8 @@ jobs: uses: "actions/checkout@v4" - name: "Setup environment" uses: "networktocode/gh-action-setup-poetry-environment@v6" + with: + poetry-version: "1.8.5" - name: "Constrain Nautobot version and regenerate lock file" env: INVOKE_{{ cookiecutter.app_name.upper() }}_LOCAL: "true" @@ -187,6 +201,8 @@ jobs: fetch-depth: "0" - name: "Setup environment" uses: "networktocode/gh-action-setup-poetry-environment@v6" + with: + poetry-version: "1.8.5" - name: "Check for changelog entry" run: | {% raw -%}