Skip to content

Commit a042028

Browse files
Merge pull request #177 from networktocode/release-1.5.0
Release v1.5.0
2 parents 9920aaa + 9e76cac commit a042028

32 files changed

+1536
-1205
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# Unless a later match takes precedence, these will be requested for
88
# review when someone opens a pull request. Once approved, PR creators
99
# are encouraged to merge their own PRs.
10-
* @chadell @glennmatthews
10+
* @cmsirbu @glennmatthews
1111

1212
# Order is important; the last matching pattern takes the most
1313
# precedence.

.github/workflows/ci.yml

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -9,64 +9,64 @@ env:
99

1010
jobs:
1111
black:
12-
runs-on: "ubuntu-20.04"
12+
runs-on: "ubuntu-latest"
1313
env:
1414
INVOKE_LOCAL: "True"
1515
steps:
1616
- name: "Check out repository code"
1717
uses: "actions/checkout@v2"
1818
- name: "Setup environment"
19-
uses: "networktocode/gh-action-setup-poetry-environment@v2"
19+
uses: "networktocode/gh-action-setup-poetry-environment@v6"
2020
- name: "Linting: black"
2121
run: "poetry run invoke black"
2222
bandit:
23-
runs-on: "ubuntu-20.04"
23+
runs-on: "ubuntu-latest"
2424
env:
2525
INVOKE_LOCAL: "True"
2626
steps:
2727
- name: "Check out repository code"
2828
uses: "actions/checkout@v2"
2929
- name: "Setup environment"
30-
uses: "networktocode/gh-action-setup-poetry-environment@v2"
30+
uses: "networktocode/gh-action-setup-poetry-environment@v6"
3131
- name: "Linting: bandit"
3232
run: "poetry run invoke bandit"
3333
needs:
3434
- "black"
3535
pydocstyle:
36-
runs-on: "ubuntu-20.04"
36+
runs-on: "ubuntu-latest"
3737
env:
3838
INVOKE_LOCAL: "True"
3939
steps:
4040
- name: "Check out repository code"
4141
uses: "actions/checkout@v2"
4242
- name: "Setup environment"
43-
uses: "networktocode/gh-action-setup-poetry-environment@v2"
43+
uses: "networktocode/gh-action-setup-poetry-environment@v6"
4444
- name: "Linting: pydocstyle"
4545
run: "poetry run invoke pydocstyle"
4646
needs:
4747
- "black"
4848
flake8:
49-
runs-on: "ubuntu-20.04"
49+
runs-on: "ubuntu-latest"
5050
env:
5151
INVOKE_LOCAL: "True"
5252
steps:
5353
- name: "Check out repository code"
5454
uses: "actions/checkout@v2"
5555
- name: "Setup environment"
56-
uses: "networktocode/gh-action-setup-poetry-environment@v2"
56+
uses: "networktocode/gh-action-setup-poetry-environment@v6"
5757
- name: "Linting: flake8"
5858
run: "poetry run invoke flake8"
5959
needs:
6060
- "black"
6161
yamllint:
62-
runs-on: "ubuntu-20.04"
62+
runs-on: "ubuntu-latest"
6363
env:
6464
INVOKE_LOCAL: "True"
6565
steps:
6666
- name: "Check out repository code"
6767
uses: "actions/checkout@v2"
6868
- name: "Setup environment"
69-
uses: "networktocode/gh-action-setup-poetry-environment@v2"
69+
uses: "networktocode/gh-action-setup-poetry-environment@v6"
7070
- name: "Linting: yamllint"
7171
run: "poetry run invoke yamllint"
7272
needs:
@@ -75,9 +75,9 @@ jobs:
7575
strategy:
7676
fail-fast: true
7777
matrix:
78-
python-version: ["3.8", "3.9", "3.10", "3.11"]
79-
ansible-core-version: ["2.11.7"]
80-
runs-on: "ubuntu-20.04"
78+
python-version: ["3.10", "3.11", "3.12"]
79+
ansible-core-version: ["2.16.14"]
80+
runs-on: "ubuntu-latest"
8181
env:
8282
PYTHON_VER: "${{ matrix.python-version }}"
8383
ANSIBLE_VER: "${{ matrix.ansible-core-version }}"
@@ -86,7 +86,7 @@ jobs:
8686
- name: "Check out repository code"
8787
uses: "actions/checkout@v2"
8888
- name: "Setup environment"
89-
uses: "networktocode/gh-action-setup-poetry-environment@v2"
89+
uses: "networktocode/gh-action-setup-poetry-environment@v6"
9090
- name: "Get image version"
9191
run: "echo IMAGE_VER=`poetry version -s`-py${{ matrix.python-version }}-ansible-core${{ matrix.ansible-core-version }} >> $GITHUB_ENV"
9292
- name: "Set up Docker Buildx"
@@ -113,12 +113,12 @@ jobs:
113113
- "flake8"
114114
- "yamllint"
115115
pylint:
116-
runs-on: "ubuntu-20.04"
116+
runs-on: "ubuntu-latest"
117117
strategy:
118118
fail-fast: true
119119
matrix:
120-
python-version: ["3.8"]
121-
ansible-core-version: ["2.11.7"]
120+
python-version: ["3.10"]
121+
ansible-core-version: ["2.16.14"]
122122
env:
123123
PYTHON_VER: "${{ matrix.python-version }}"
124124
ANSIBLE_VER: "${{ matrix.ansible-core-version }}"
@@ -127,7 +127,7 @@ jobs:
127127
- name: "Check out repository code"
128128
uses: "actions/checkout@v2"
129129
- name: "Setup environment"
130-
uses: "networktocode/gh-action-setup-poetry-environment@v2"
130+
uses: "networktocode/gh-action-setup-poetry-environment@v6"
131131
- name: "Get image version"
132132
run: "echo IMAGE_VER=`poetry version -s`-py${{ matrix.python-version }}-ansible-core${{ matrix.ansible-core-version }} >> $GITHUB_ENV"
133133
- name: "Set up Docker Buildx"
@@ -159,9 +159,9 @@ jobs:
159159
strategy:
160160
fail-fast: true
161161
matrix:
162-
python-version: ["3.8", "3.9", "3.10", "3.11"]
163-
ansible-core-version: ["2.11.7"]
164-
runs-on: "ubuntu-20.04"
162+
python-version: ["3.10", "3.11", "3.12"]
163+
ansible-core-version: ["2.16.14"]
164+
runs-on: "ubuntu-latest"
165165
env:
166166
PYTHON_VER: "${{ matrix.python-version }}"
167167
ANSIBLE_VER: "${{ matrix.ansible-core-version }}"
@@ -170,7 +170,7 @@ jobs:
170170
- name: "Check out repository code"
171171
uses: "actions/checkout@v2"
172172
- name: "Setup environment"
173-
uses: "networktocode/gh-action-setup-poetry-environment@v2"
173+
uses: "networktocode/gh-action-setup-poetry-environment@v6"
174174
- name: "Get image version"
175175
run: "echo IMAGE_VER=`poetry version -s`-py${{ matrix.python-version }}-ansible-core${{ matrix.ansible-core-version }} >> $GITHUB_ENV"
176176
- name: "Set up Docker Buildx"
@@ -200,15 +200,15 @@ jobs:
200200
- "pylint"
201201
publish_gh:
202202
name: "Publish to GitHub"
203-
runs-on: "ubuntu-20.04"
203+
runs-on: "ubuntu-latest"
204204
if: "startsWith(github.ref, 'refs/tags/v')"
205205
steps:
206206
- name: "Check out repository code"
207207
uses: "actions/checkout@v2"
208208
- name: "Set up Python"
209209
uses: "actions/setup-python@v2"
210210
with:
211-
python-version: "3.9"
211+
python-version: "3.12"
212212
- name: "Install Python Packages"
213213
run: "pip install poetry"
214214
- name: "Set env"
@@ -229,15 +229,15 @@ jobs:
229229
- "pytest"
230230
publish_pypi:
231231
name: "Push Package to PyPI"
232-
runs-on: "ubuntu-20.04"
232+
runs-on: "ubuntu-latest"
233233
if: "startsWith(github.ref, 'refs/tags/v')"
234234
steps:
235235
- name: "Check out repository code"
236236
uses: "actions/checkout@v2"
237237
- name: "Set up Python"
238238
uses: "actions/setup-python@v2"
239239
with:
240-
python-version: "3.9"
240+
python-version: "3.12"
241241
- name: "Install Python Packages"
242242
run: "pip install poetry"
243243
- name: "Set env"

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
## v1.5.0 - 2025-11-10
4+
5+
This housekeeping release updates the supported Python version to a 3.10 minimum and the optional Ansible dependency to 2.16. It also updated most dependencies, fixed tests, and CI.
6+
7+
* #175 Update all dependencies and other housekeeping
8+
* #173 Fix Ubuntu runner version
9+
310
## v1.4.0 - 2024-03-11
411

512
- #165 Support Pydantic Models for Validation

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
ARG PYTHON_VER
1+
ARG PYTHON_VER=3.10
22

3-
FROM python:${PYTHON_VER} as base
3+
FROM python:${PYTHON_VER} AS base
44

55
RUN pip install --upgrade pip && \
66
pip install poetry
@@ -16,7 +16,7 @@ RUN poetry config virtualenvs.create false \
1616
# -----------------------------------------------------------------------------
1717
# Defines stage with ansible installed
1818
# -----------------------------------------------------------------------------
19-
FROM base as with_ansible
19+
FROM base AS with_ansible
2020
ARG ANSIBLE_PACKAGE=ansible-core
21-
ARG ANSIBLE_VER=2.11.7
21+
ARG ANSIBLE_VER=2.16.14
2222
RUN pip install $ANSIBLE_PACKAGE==$ANSIBLE_VER

examples/ansible3/validators/check_interfaces.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Example validator plugin."""
2+
23
from schema_enforcer.schemas.validator import JmesPathModelValidation
34

45

0 commit comments

Comments
 (0)