Skip to content

Commit 82b988e

Browse files
pdthummarvrdmrgavin-aguiar
authored
Add py3.11 tests for CI consumption workflow. (#1266)
Co-authored-by: Varad Meru <[email protected]> Co-authored-by: gavin-aguiar <[email protected]>
1 parent 201013e commit 82b988e

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.github/workflows/ci_consumption_workflow.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
strategy:
1818
fail-fast: false
1919
matrix:
20-
python-version: [ 3.7, 3.8, 3.9, "3.10" ]
20+
python-version: [ 3.7, 3.8, 3.9, "3.10", "3.11" ]
2121

2222
steps:
2323
- name: Checkout code.
@@ -51,3 +51,8 @@ jobs:
5151
env:
5252
AzureWebJobsStorage: ${{ secrets.LinuxStorageConnectionString310 }}
5353
run: python -m pytest -n auto --dist loadfile -vv --reruns 4 --instafail tests/consumption_tests
54+
- name: Running 3.11 Tests
55+
if: matrix.python-version == 3.11
56+
env:
57+
AzureWebJobsStorage: ${{ secrets.LinuxStorageConnectionString311 }}
58+
run: python -m pytest -n auto --dist loadfile -vv --reruns 4 --instafail tests/consumption_tests

tests/consumption_tests/test_linux_consumption.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def test_common_libraries(self):
9090
self.assertIn('pyodbc', content)
9191
self.assertIn('requests', content)
9292

93-
@skipIf(sys.version_info.minor == 10,
93+
@skipIf(sys.version_info.minor in (10, 11),
9494
"Protobuf pinning fails during remote build")
9595
def test_new_protobuf(self):
9696
"""A function app with the following requirements.txt:
@@ -120,7 +120,7 @@ def test_new_protobuf(self):
120120
self.assertEqual(content['google.protobuf'], '3.15.8')
121121
self.assertEqual(content['grpc'], '1.33.2')
122122

123-
@skipIf(sys.version_info.minor == 10,
123+
@skipIf(sys.version_info.minor in (10, 11),
124124
"Protobuf pinning fails during remote build")
125125
def test_old_protobuf(self):
126126
"""A function app with the following requirements.txt:

0 commit comments

Comments
 (0)