Skip to content

Commit cc02b9f

Browse files
Update Python version for CI tests (#363)
* Update Python version for CI tests * Keep pyangbind requiring at least Py3.7, but start CI tests at Py3.8 * Extend CI Tests to Py3.14 * No longer cache pip at unit-tests * Update serialized output for tests * Remove integration model that caused large dependecies * Black fmt
1 parent a4bd3bd commit cc02b9f

10 files changed

Lines changed: 19 additions & 17 deletions

File tree

.github/workflows/pypi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Set up Python
1818
uses: actions/setup-python@v4
1919
with:
20-
python-version: "3.11"
20+
python-version: "3.12"
2121
- name: Install building dependencies
2222
run: pip -q install build
2323
- name: Build package

.github/workflows/python-test.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,15 @@ jobs:
2525
strategy:
2626
fail-fast: false
2727
matrix:
28-
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
28+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
2929
steps:
3030
- uses: actions/checkout@v3
3131
- name: Set up Python ${{ matrix.python-version }}
3232
uses: actions/setup-python@v3
3333
with:
3434
python-version: ${{ matrix.python-version }}
35-
cache: 'pip' # caching pip dependencies
3635
- name: Install testing dependencies
3736
run: pip install tox
3837
- name: Run tox for ${{ matrix.python-version }}
3938
# Run tox using the version of Python in `PATH`
40-
run: tox -e py
39+
run: tox -e py

requirements.DEVELOPER.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ build
33
coverage
44
pytest
55
requests
6-
setuptools
6+
setuptools<80.9
77
tox
88
wheel

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ classifiers =
3030
Intended Audience :: Developers
3131
Topic :: Software Development :: Code Generators
3232
License :: OSI Approved :: Apache Software License
33-
Programming Language :: Python :: 3.7
3433
Programming Language :: Python :: 3.8
3534
Programming Language :: Python :: 3.9
3635
Programming Language :: Python :: 3.10
3736
Programming Language :: Python :: 3.11
3837
Programming Language :: Python :: 3.12
38+
Programming Language :: Python :: 3.13
3939
Programming Language :: Python :: Implementation :: CPython
4040
Programming Language :: Python :: Implementation :: PyPy
4141

tests/integration/openconfig-interfaces/run.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99

1010
class OpenconfigInterfacesTests(PyangBindTestCase):
1111
yang_files = [
12-
os.path.join("openconfig", "%s.yang" % fname)
13-
for fname in ["openconfig-interfaces", "openconfig-if-aggregate", "openconfig-if-ip"]
12+
os.path.join("openconfig", "%s.yang" % fname) for fname in ["openconfig-interfaces", "openconfig-if-aggregate"]
1413
]
1514
pyang_flags = [
1615
"-p %s" % os.path.join(os.path.dirname(__file__), "include"),
@@ -32,9 +31,6 @@ class OpenconfigInterfacesTests(PyangBindTestCase):
3231
"files": [
3332
"openconfig-extensions.yang",
3433
"types/openconfig-types.yang",
35-
"vlan/openconfig-vlan.yang",
36-
"vlan/openconfig-vlan-types.yang",
37-
"types/openconfig-inet-types.yang",
3834
"types/openconfig-yang-types.yang",
3935
"optical-transport/openconfig-transport-types.yang",
4036
"platform/openconfig-platform-types.yang",
@@ -44,7 +40,6 @@ class OpenconfigInterfacesTests(PyangBindTestCase):
4440
"local_path": "openconfig",
4541
"remote_prefix": "https://raw.githubusercontent.com/openconfig/public/master/release/models/",
4642
"files": [
47-
"interfaces/openconfig-if-ip.yang",
4843
"interfaces/openconfig-if-ethernet.yang",
4944
"interfaces/openconfig-if-aggregate.yang",
5045
"interfaces/openconfig-interfaces.yang",

tests/serialise/openconfig-serialise/json/interfaces_ph.False-flt.False-m.default.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@
6464
"out-unicast-pkts": 0,
6565
"out-discards": 0,
6666
"in-broadcast-pkts": 0,
67-
"carrier-transitions": 0,
67+
"carrier-transitions": 0,
68+
"interface-transitions": 0,
69+
"link-transitions": 0,
6870
"in-unknown-protos": 0,
6971
"in-octets": 0,
7072
"in-pkts": 0,

tests/serialise/openconfig-serialise/json/interfaces_ph.False-flt.False-m.ietf.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@
6464
"out-unicast-pkts": "0",
6565
"out-discards": "0",
6666
"in-broadcast-pkts": "0",
67-
"carrier-transitions": "0",
67+
"carrier-transitions": "0",
68+
"interface-transitions": "0",
69+
"link-transitions": "0",
6870
"in-unknown-protos": "0",
6971
"in-octets": "0",
7072
"in-pkts": "0",

tests/serialise/openconfig-serialise/json/interfaces_ph.True-flt.False-m.default.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@
6464
"out-unicast-pkts": 0,
6565
"out-discards": 0,
6666
"in-broadcast-pkts": 0,
67-
"carrier-transitions": 0,
67+
"carrier-transitions": 0,
68+
"interface-transitions": 0,
69+
"link-transitions": 0,
6870
"in-unknown-protos": 0,
6971
"in-octets": 0,
7072
"in-pkts":0,

tests/serialise/openconfig-serialise/json/interfaces_ph.True-flt.False-m.ietf.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@
6464
"out-unicast-pkts": "0",
6565
"out-discards": "0",
6666
"in-broadcast-pkts": "0",
67-
"carrier-transitions": "0",
67+
"carrier-transitions": "0",
68+
"interface-transitions": "0",
69+
"link-transitions": "0",
6870
"in-unknown-protos": "0",
6971
"in-octets": "0",
7072
"in-pkts": "0",

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py{37,38,39,310,311,312},py,black
2+
envlist = py{38,39,310,311,312,313},py,black
33
skip_missing_interpreters = True
44

55
[testenv]

0 commit comments

Comments
 (0)