@@ -5,10 +5,14 @@ name: CI Consumption E2E tests
5
5
6
6
on :
7
7
workflow_dispatch :
8
+ inputs :
9
+ custom_image :
10
+ description : " Use a custom image to run consumption tests"
11
+ required : false
8
12
push :
9
- branches : [ dev, master, main, release/* ]
13
+ branches : [ dev, main, release/* ]
10
14
pull_request :
11
- branches : [ dev, master, main, release/* ]
15
+ branches : [ dev, main, release/* ]
12
16
13
17
jobs :
14
18
build :
@@ -35,24 +39,29 @@ jobs:
35
39
if : matrix.python-version == 3.7
36
40
env :
37
41
AzureWebJobsStorage : ${{ secrets.LinuxStorageConnectionString37 }}
42
+ CUSTOM_IMAGE : ${{ github.event.inputs.custom_image }}
38
43
run : python -m pytest -n auto --dist loadfile -vv --reruns 4 --instafail tests/consumption_tests
39
44
- name : Running 3.8 Tests
40
45
if : matrix.python-version == 3.8
41
46
env :
42
47
AzureWebJobsStorage : ${{ secrets.LinuxStorageConnectionString38 }}
48
+ CUSTOM_IMAGE : ${{ github.event.inputs.custom_image }}
43
49
run : python -m pytest -n auto --dist loadfile -vv --reruns 4 --instafail tests/consumption_tests
44
50
- name : Running 3.9 Tests
45
51
if : matrix.python-version == 3.9
46
52
env :
47
53
AzureWebJobsStorage : ${{ secrets.LinuxStorageConnectionString39 }}
54
+ CUSTOM_IMAGE : ${{ github.event.inputs.custom_image }}
48
55
run : python -m pytest -n auto --dist loadfile -vv --reruns 4 --instafail tests/consumption_tests
49
56
- name : Running 3.10 Tests
50
57
if : matrix.python-version == 3.10
51
58
env :
52
59
AzureWebJobsStorage : ${{ secrets.LinuxStorageConnectionString310 }}
60
+ CUSTOM_IMAGE : ${{ github.event.inputs.custom_image }}
53
61
run : python -m pytest -n auto --dist loadfile -vv --reruns 4 --instafail tests/consumption_tests
54
62
- name : Running 3.11 Tests
55
63
if : matrix.python-version == 3.11
56
64
env :
57
65
AzureWebJobsStorage : ${{ secrets.LinuxStorageConnectionString311 }}
66
+ CUSTOM_IMAGE : ${{ github.event.inputs.custom_image }}
58
67
run : python -m pytest -n auto --dist loadfile -vv --reruns 4 --instafail tests/consumption_tests
0 commit comments