Skip to content

Commit e16daa9

Browse files
authored
Merge branch 'dev' into pthummar/add_py311_tests
2 parents 9433f7f + cd16cf0 commit e16daa9

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

.github/Scripts/e2e-tests.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env bash
2+
python -m pytest -n auto --dist loadfile --reruns 4 -vv --instafail --cov=./azure_functions_worker --cov-report xml --cov-branch --cov-append tests/endtoend/test_worker_process_count_functions.py tests/endtoend/test_threadpool_thread_count_functions.py
3+
python -m pytest -n auto --dist loadfile --reruns 4 -vv --instafail --cov=./azure_functions_worker --cov-report xml --cov-branch --cov-append --ignore=tests/endtoend/test_worker_process_count_functions.py --ignore=tests/endtoend/test_threadpool_thread_count_functions.py tests/endtoend

.github/workflows/ci_e2e_workflow.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ jobs:
6565
retry 5 python setup.py build
6666
retry 5 python setup.py webhost --branch-name=dev
6767
retry 5 python setup.py extension
68+
- name: Grant execute permission
69+
run: chmod +x .github/Scripts/e2e-tests.sh
6870
- name: Running 3.7 Tests
6971
if: matrix.python-version == 3.7
7072
env:
@@ -75,8 +77,7 @@ jobs:
7577
AzureWebJobsSqlConnectionString: ${{ secrets.LinuxSqlConnectionString37 }}
7678
AzureWebJobsEventGridTopicUri: ${{ secrets.LinuxEventGridTopicUriString37 }}
7779
AzureWebJobsEventGridConnectionKey: ${{ secrets.LinuxEventGridConnectionKeyString37 }}
78-
run: |
79-
python -m pytest -n auto --dist loadfile --reruns 4 -vv --instafail --cov=./azure_functions_worker --cov-report xml --cov-branch --cov-append tests/endtoend
80+
run: .github/Scripts/e2e-tests.sh
8081
- name: Running 3.8 Tests
8182
if: matrix.python-version == 3.8
8283
env:
@@ -87,8 +88,7 @@ jobs:
8788
AzureWebJobsSqlConnectionString: ${{ secrets.LinuxSqlConnectionString38 }}
8889
AzureWebJobsEventGridTopicUri: ${{ secrets.LinuxEventGridTopicUriString38 }}
8990
AzureWebJobsEventGridConnectionKey: ${{ secrets.LinuxEventGridConnectionKeyString38 }}
90-
run: |
91-
python -m pytest -n auto --dist loadfile --reruns 4 -vv --instafail --cov=./azure_functions_worker --cov-report xml --cov-branch --cov-append tests/endtoend
91+
run: .github/Scripts/e2e-tests.sh
9292
- name: Running 3.9 Tests
9393
if: matrix.python-version == 3.9
9494
env:
@@ -99,8 +99,7 @@ jobs:
9999
AzureWebJobsSqlConnectionString: ${{ secrets.LinuxSqlConnectionString39 }}
100100
AzureWebJobsEventGridTopicUri: ${{ secrets.LinuxEventGridTopicUriString39 }}
101101
AzureWebJobsEventGridConnectionKey: ${{ secrets.LinuxEventGridConnectionKeyString39 }}
102-
run: |
103-
python -m pytest -n auto --dist loadfile --reruns 4 -vv --instafail --cov=./azure_functions_worker --cov-report xml --cov-branch --cov-append tests/endtoend
102+
run: .github/Scripts/e2e-tests.sh
104103
- name: Running 3.10 Tests
105104
if: matrix.python-version == 3.10
106105
env:
@@ -111,8 +110,7 @@ jobs:
111110
AzureWebJobsSqlConnectionString: ${{ secrets.LinuxSqlConnectionString310 }}
112111
AzureWebJobsEventGridTopicUri: ${{ secrets.LinuxEventGridTopicUriString310 }}
113112
AzureWebJobsEventGridConnectionKey: ${{ secrets.LinuxEventGridConnectionKeyString310 }}
114-
run: |
115-
python -m pytest -n auto --dist loadfile --reruns 4 -vv --instafail --cov=./azure_functions_worker --cov-report xml --cov-branch --cov-append tests/endtoend
113+
run: .github/Scripts/e2e-tests.sh
116114
- name: Running 3.11 Tests
117115
if: matrix.python-version == 3.11
118116
env:
@@ -123,8 +121,7 @@ jobs:
123121
AzureWebJobsSqlConnectionString: ${{ secrets.LinuxSqlConnectionString311 }}
124122
AzureWebJobsEventGridTopicUri: ${{ secrets.LinuxEventGridTopicUriString311 }}
125123
AzureWebJobsEventGridConnectionKey: ${{ secrets.LinuxEventGridConnectionKeyString311 }}
126-
run: |
127-
python -m pytest -n auto --dist loadfile --reruns 4 -vv --instafail --cov=./azure_functions_worker --cov-report xml --cov-branch --cov-append tests/endtoend
124+
run: .github/Scripts/e2e-tests.sh
128125
- name: Codecov
129126
uses: codecov/[email protected]
130127
with:

0 commit comments

Comments
 (0)