Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 14 additions & 31 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
INVOKE_NETUTILS_LOCAL: "True"
steps:
- name: "Check out repository code"
uses: "actions/checkout@v4"
uses: "actions/checkout@v7"
- name: "Setup environment"
uses: "networktocode/gh-action-setup-poetry-environment@v7"
with:
Expand All @@ -34,7 +34,7 @@ jobs:
INVOKE_NETUTILS_LOCAL: "True"
steps:
- name: "Check out repository code"
uses: "actions/checkout@v4"
uses: "actions/checkout@v7"
- name: "Setup environment"
uses: "networktocode/gh-action-setup-poetry-environment@v7"
with:
Expand All @@ -47,9 +47,9 @@ jobs:
INVOKE_NETUTILS_LOCAL: "True"
steps:
- name: "Check out repository code"
uses: "actions/checkout@v4"
uses: "actions/checkout@v7"
- name: "Setup environment"
uses: "networktocode/gh-action-setup-poetry-environment@v6"
uses: "networktocode/gh-action-setup-poetry-environment@v7"
with:
python-version: "3.13"
- name: "Type-Hints: mypy"
Expand All @@ -63,7 +63,7 @@ jobs:
INVOKE_NETUTILS_LOCAL: "True"
steps:
- name: "Check out repository code"
uses: "actions/checkout@v4"
uses: "actions/checkout@v7"
- name: "Setup environment"
uses: "networktocode/gh-action-setup-poetry-environment@v7"
with:
Expand All @@ -77,7 +77,7 @@ jobs:
INVOKE_NETUTILS_LOCAL: "True"
steps:
- name: "Check out repository code"
uses: "actions/checkout@v4"
uses: "actions/checkout@v7"
- name: "Setup environment"
uses: "networktocode/gh-action-setup-poetry-environment@v7"
with:
Expand All @@ -90,7 +90,7 @@ jobs:
INVOKE_NETUTILS_LOCAL: "True"
steps:
- name: "Check out repository code"
uses: "actions/checkout@v4"
uses: "actions/checkout@v7"
- name: "Setup environment"
uses: "networktocode/gh-action-setup-poetry-environment@v7"
with:
Expand All @@ -107,12 +107,12 @@ jobs:
strategy:
fail-fast: true
matrix:
python-version: ["3.10"]
python-version: ["3.10", "3.14"]
env:
INVOKE_NETUTILS_PYTHON_VER: "${{ matrix.python-version }}"
steps:
- name: "Check out repository code"
uses: "actions/checkout@v4"
uses: "actions/checkout@v7"
- name: "Setup environment"
uses: "networktocode/gh-action-setup-poetry-environment@v7"
with:
Expand All @@ -121,9 +121,9 @@ jobs:
run: "echo INVOKE_NETUTILS_IMAGE_VER=`poetry version -s`-py${{ matrix.python-version }} >> $GITHUB_ENV"
- name: "Set up Docker Buildx"
id: "buildx"
uses: "docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2" # v3.10.0
uses: "docker/setup-buildx-action@37fe631027851001ddb9b187196cc803df7f5f0e" # v4.3.0
- name: "Build"
uses: "docker/build-push-action@ca052bb54ab0790a636c9b5f226502c73d547a25" # v5.4.0
uses: "docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a" # v7.3.0
with:
builder: "${{ steps.buildx.outputs.name }}"
context: "./"
Expand All @@ -147,31 +147,14 @@ jobs:
runs-on: "ubuntu-latest"
env:
INVOKE_NETUTILS_PYTHON_VER: "${{ matrix.python-version }}"
INVOKE_NETUTILS_LOCAL: "True"
steps:
- name: "Check out repository code"
uses: "actions/checkout@v4"
uses: "actions/checkout@v7"
- name: "Setup environment"
uses: "networktocode/gh-action-setup-poetry-environment@v7"
with:
poetry-version: "2.1.3"
- name: "Get image version"
run: "echo INVOKE_NETUTILS_IMAGE_VER=`poetry version -s`-py${{ matrix.python-version }} >> $GITHUB_ENV"
- name: "Set up Docker Buildx"
id: "buildx"
uses: "docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2" # v3.10.0
- name: "Build"
uses: "docker/build-push-action@ca052bb54ab0790a636c9b5f226502c73d547a25" # v5.4.0
with:
builder: "${{ steps.buildx.outputs.name }}"
context: "./"
push: false
load: true
tags: "${{ env.INVOKE_NETUTILS_IMAGE_NAME }}:${{ env.INVOKE_NETUTILS_IMAGE_VER }}"
file: "./Dockerfile"
cache-from: "type=gha,scope=${{ env.INVOKE_NETUTILS_IMAGE_NAME }}-${{ env.INVOKE_NETUTILS_IMAGE_VER }}-py${{ matrix.python-version }}"
cache-to: "type=gha,scope=${{ env.INVOKE_NETUTILS_IMAGE_NAME }}-${{ env.INVOKE_NETUTILS_IMAGE_VER }}-py${{ matrix.python-version }}"
build-args: |
PYTHON_VER=${{ matrix.python-version }}
- name: "Run Tests"
run: "poetry run invoke pytest"
changelog:
Expand All @@ -181,7 +164,7 @@ jobs:
runs-on: "ubuntu-latest"
steps:
- name: "Check out repository code"
uses: "actions/checkout@v4"
uses: "actions/checkout@v7"
with:
fetch-depth: "0"
- name: "Setup environment"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/oui_filepull.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
BRANCH_NAME: "OUI_Updates"
steps:
- name: "Check out code"
uses: "actions/checkout@v4"
uses: "actions/checkout@v7"
with:
ref: "develop"
fetch-depth: 0
Expand Down Expand Up @@ -73,7 +73,7 @@ jobs:
steps:
# Checkout repo
- name: "Check out code"
uses: "actions/checkout@v4"
uses: "actions/checkout@v7"
with:
ref: "OUI_Updates"
# Create PR from branch created above into develop
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/prepare_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
runs-on: "ubuntu-latest"
steps:
- name: "Checkout code"
uses: "actions/checkout@v4"
uses: "actions/checkout@v7"
with:
# If target_branch is 'main', use 'develop' as the source branch. Otherwise, the source and target branch are the same.
ref: "${{ github.event.inputs['target_branch'] == 'main' && 'develop' || github.event.inputs['target_branch'] }}"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/proto_filepull.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
steps:
# Checkout repo
- name: "Check out code"
uses: "actions/checkout@v4"
uses: "actions/checkout@v7"
with:
ref: "develop"
# Delete old branch if it exists
Expand Down Expand Up @@ -46,7 +46,7 @@ jobs:
steps:
# Checkout repo
- name: "Check out code"
uses: "actions/checkout@v4"
uses: "actions/checkout@v7"
with:
ref: "PROTO_Updates"
# Create PR from branch created above into develop
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/proto_num_filepull.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
steps:
# Checkout repo
- name: "Check out code"
uses: "actions/checkout@v4"
uses: "actions/checkout@v7"
with:
ref: "develop"
# Delete old branch if it exists
Expand Down Expand Up @@ -46,7 +46,7 @@ jobs:
steps:
# Checkout repo
- name: "Check out code"
uses: "actions/checkout@v4"
uses: "actions/checkout@v7"
with:
ref: "PROTO_NUM_Updates"
# Create PR from branch created above into develop
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@ on: # yamllint disable-line rule:truthy rule:comments
env:
POETRY_VERSION: "2.1.3"
PYTHON_VERSION: "3.12"
INVOKE_NETUTILS_LOCAL: "True"

jobs:
build:
name: "Build package with poetry"
runs-on: "ubuntu-latest"
if: "startsWith(github.ref, 'refs/tags/v')"
steps:
- uses: "actions/checkout@v4"
- uses: "actions/checkout@v7"
- name: "Setup environment"
uses: "networktocode/gh-action-setup-poetry-environment@v7"
with:
Expand Down Expand Up @@ -44,7 +45,7 @@ jobs:
contents: "write"
needs: "build"
steps:
- uses: "actions/checkout@v4"
- uses: "actions/checkout@v7"
- name: "Retrieve built package from cache"
uses: "actions/download-artifact@v4"
with:
Expand Down Expand Up @@ -121,7 +122,7 @@ jobs:
runs-on: "ubuntu-latest"
steps:
- name: "Checkout source branch"
uses: "actions/checkout@v4"
uses: "actions/checkout@v7"
with:
ref: "${{ github.event.release.target_commitish }}"
fetch-depth: 0
Expand Down
10 changes: 10 additions & 0 deletions docs/admin/release_notes/version_1.19.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,16 @@ This document describes all new features and changes in the release. The format

<!-- towncrier release notes start -->

## [v1.19.1 (2026-08-26)](https://github.com/networktocode/netutils/releases/tag/v1.19.1)

### Fixed

- [#893](https://github.com/networktocode/netutils/issues/893) - Fixed the release process failing due to missing local environment invoke variable.

### Housekeeping

- Upgrade GitHub actions/checkout@v4 to @v7.

## [v1.19.0 (2026-08-25)](https://github.com/networktocode/netutils/releases/tag/v1.19.0)

### Added
Expand Down
17 changes: 7 additions & 10 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "netutils"
version = "1.19.0"
version = "1.19.1"
description = "Common helper functions useful in network automation."
authors = ["Network to Code, LLC <opensource@networktocode.com>"]
license = "Apache-2.0"
Expand Down