Skip to content
Open
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
18 changes: 17 additions & 1 deletion .cookiecutter.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,26 @@
"template_dir": "python",
"template_ref": "main",
"cookie_dir": "",
"pull_request_strategy": "create",
"pull_request_strategy": "update-or-create",
"post_actions": [],
"draft": false,
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
"baked_commit_ref": "a5add2662f26a3b877635bbf1fd787682414d2bf",
=======
"baked_commit_ref": "0bac2e8ca365aea9a730bfc06c5e5029b25dcf50",
>>>>>>> 1cad760 (Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool)
=======
"baked_commit_ref": "1c8e2eb54eafb18e541e80793a2e71d1fcb3b067",
>>>>>>> 45de4a7 (Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool)
=======
"baked_commit_ref": "5cd4dfba81f23c9228a9c06249e9631f776bb178",
>>>>>>> b5401ea (Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool)
=======
"baked_commit_ref": "a5653fa42d5aaf2850cdfeb63eabe9e7dc7f04ad",
>>>>>>> 5cce21d (Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool)
"drift_managed_branch": "develop"
}
}
Expand Down
136 changes: 123 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ jobs:
INVOKE_PYNTC_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:
poetry-version: "2.1.3"
- name: "Linting: ruff format"
Expand All @@ -34,9 +34,9 @@ jobs:
INVOKE_PYNTC_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:
poetry-version: "2.1.3"
- name: "Linting: ruff"
Expand All @@ -47,9 +47,9 @@ jobs:
INVOKE_PYNTC_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:
poetry-version: "2.1.3"
poetry-install-options: "--only dev,docs"
Expand All @@ -61,9 +61,9 @@ jobs:
INVOKE_PYNTC_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:
poetry-version: "2.1.3"
- name: "Checking: poetry lock file"
Expand All @@ -74,9 +74,9 @@ jobs:
INVOKE_PYNTC_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:
poetry-version: "2.1.3"
- name: "Linting: yamllint"
Expand All @@ -91,14 +91,70 @@ jobs:
strategy:
fail-fast: true
matrix:
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
python-version: ["3.10", "3.11"] # TODO: Switch back to latest supported Python when https://github.com/networktocode/pyntc/issues/351 is completed
=======
python-version: ["3.10"]
>>>>>>> 45de4a7 (Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool)
=======
python-version: ["3.10"]
>>>>>>> b5401ea (Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool)
=======
python-version: ["3.10", "3.14"]
env:
INVOKE_PYNTC_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:
poetry-version: "2.1.3"
- name: "Get image version"
run: "echo INVOKE_PYNTC_IMAGE_VER=`poetry version -s`-py${{ matrix.python-version }} >> $GITHUB_ENV"
- name: "Set up Docker Buildx"
id: "buildx"
uses: "docker/setup-buildx-action@37fe631027851001ddb9b187196cc803df7f5f0e" # v4.3.0
- name: "Build"
uses: "docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a" # v7.3.0
with:
builder: "${{ steps.buildx.outputs.name }}"
context: "./"
push: false
load: true
tags: "${{ env.INVOKE_PYNTC_IMAGE_NAME }}:${{ env.INVOKE_PYNTC_IMAGE_VER }}"
file: "./Dockerfile"
cache-from: "type=gha,scope=${{ env.INVOKE_PYNTC_IMAGE_NAME }}-${{ env.INVOKE_PYNTC_IMAGE_VER }}-py${{ matrix.python-version }}"
cache-to: "type=gha,scope=${{ env.INVOKE_PYNTC_IMAGE_NAME }}-${{ env.INVOKE_PYNTC_IMAGE_VER }}-py${{ matrix.python-version }}"
build-args: |
PYTHON_VER=${{ matrix.python-version }}
- name: "Linting: Pylint"
run: "poetry run invoke pylint"
pytest:
needs:
- "check-in-docker"
strategy:
fail-fast: true
matrix:
python-version: ["3.10", "3.14"]
runs-on: "ubuntu-latest"
>>>>>>> 5cce21d (Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool)
env:
INVOKE_PYNTC_PYTHON_VER: "${{ matrix.python-version }}"
INVOKE_PYNTC_LOCAL: "True"
steps:
- name: "Check out repository code"
uses: "actions/checkout@v7"
- name: "Setup environment"
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
uses: "networktocode/gh-action-setup-poetry-environment@v6"
=======
uses: "networktocode/gh-action-setup-poetry-environment@v7"
>>>>>>> b5401ea (Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool)
with:
poetry-version: "2.1.3"
- name: "Get image version"
Expand Down Expand Up @@ -127,6 +183,7 @@ jobs:
strategy:
fail-fast: true
matrix:
<<<<<<< HEAD
python-version: ["3.10", "3.11"] # TODO: Re-enable Python 3.12 and 3.13 when https://github.com/networktocode/pyntc/issues/351 is completed
runs-on: "ubuntu-latest"
env:
Expand All @@ -136,6 +193,9 @@ jobs:
uses: "actions/checkout@v4"
- name: "Setup environment"
uses: "networktocode/gh-action-setup-poetry-environment@v6"
=======
uses: "networktocode/gh-action-setup-poetry-environment@v7"
>>>>>>> 45de4a7 (Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool)
with:
poetry-version: "2.1.3"
- name: "Get image version"
Expand All @@ -156,6 +216,56 @@ jobs:
cache-to: "type=gha,scope=${{ env.INVOKE_PYNTC_IMAGE_NAME }}-${{ env.INVOKE_PYNTC_IMAGE_VER }}-py${{ matrix.python-version }}"
build-args: |
PYTHON_VER=${{ matrix.python-version }}
<<<<<<< HEAD
=======
- name: "Linting: Pylint"
run: "poetry run invoke pylint"
pytest:
needs:
- "check-in-docker"
strategy:
fail-fast: true
matrix:
=======
>>>>>>> b5401ea (Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool)
python-version: ["3.10", "3.14"]
runs-on: "ubuntu-latest"
env:
INVOKE_PYNTC_PYTHON_VER: "${{ matrix.python-version }}"
steps:
- name: "Check out repository code"
uses: "actions/checkout@v4"
- name: "Setup environment"
uses: "networktocode/gh-action-setup-poetry-environment@v7"
with:
poetry-version: "2.1.3"
- name: "Get image version"
run: "echo INVOKE_PYNTC_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_PYNTC_IMAGE_NAME }}:${{ env.INVOKE_PYNTC_IMAGE_VER }}"
file: "./Dockerfile"
cache-from: "type=gha,scope=${{ env.INVOKE_PYNTC_IMAGE_NAME }}-${{ env.INVOKE_PYNTC_IMAGE_VER }}-py${{ matrix.python-version }}"
cache-to: "type=gha,scope=${{ env.INVOKE_PYNTC_IMAGE_NAME }}-${{ env.INVOKE_PYNTC_IMAGE_VER }}-py${{ matrix.python-version }}"
build-args: |
PYTHON_VER=${{ matrix.python-version }}
<<<<<<< HEAD
>>>>>>> 45de4a7 (Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool)
=======
>>>>>>> b5401ea (Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool)
=======
uses: "networktocode/gh-action-setup-poetry-environment@v7"
with:
poetry-version: "2.1.3"
>>>>>>> 5cce21d (Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool)
- name: "Run Tests"
run: "poetry run invoke pytest"
changelog:
Expand All @@ -165,11 +275,11 @@ 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"
uses: "networktocode/gh-action-setup-poetry-environment@v6"
uses: "networktocode/gh-action-setup-poetry-environment@v7"
with:
poetry-version: "2.1.3"
- name: "Check for changelog entry"
Expand Down
Loading