Skip to content

Update CI consumption workflow to enable testing for py3.11 #1266

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Oct 3, 2023
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
7 changes: 6 additions & 1 deletion .github/workflows/ci_consumption_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [ 3.7, 3.8, 3.9, "3.10" ]
python-version: [ 3.7, 3.8, 3.9, "3.10", "3.11" ]

steps:
- name: Checkout code.
Expand Down Expand Up @@ -51,3 +51,8 @@ jobs:
env:
AzureWebJobsStorage: ${{ secrets.LinuxStorageConnectionString310 }}
run: python -m pytest -n auto --dist loadfile -vv --reruns 4 --instafail tests/consumption_tests
- name: Running 3.11 Tests
if: matrix.python-version == 3.11
env:
AzureWebJobsStorage: ${{ secrets.LinuxStorageConnectionString311 }}
run: python -m pytest -n auto --dist loadfile -vv --reruns 4 --instafail tests/consumption_tests
4 changes: 2 additions & 2 deletions tests/consumption_tests/test_linux_consumption.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def test_common_libraries(self):
self.assertIn('pyodbc', content)
self.assertIn('requests', content)

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

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