File tree Expand file tree Collapse file tree 5 files changed +7
-16
lines changed Expand file tree Collapse file tree 5 files changed +7
-16
lines changed Original file line number Diff line number Diff line change 1
1
# This workflow will run all tests in tests/consumption_tests in Docker using a consumption image
2
2
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3
3
4
- name : CI Consumption tests
4
+ name : CI Consumption E2E tests
5
5
6
6
on :
7
7
workflow_dispatch :
28
28
python-version : ${{ matrix.python-version }}
29
29
- name : Install dependencies
30
30
run : |
31
- python -m pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple -U -e .[dev]
32
- python setup.py build
33
- python setup.py webhost --branch-name=dev
34
- python setup.py extension
31
+ python -m pip install -U -e .[dev]
35
32
- name : Running 3.7 Tests
36
33
if : matrix.python-version == 3.7
37
34
env :
Original file line number Diff line number Diff line change 29
29
python-version : ${{ matrix.python-version }}
30
30
- name : Install dependencies
31
31
run : |
32
- python -m pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple -U -e .[dev]
33
- python setup.py build
34
- python setup.py webhost --branch-name=dev
35
- python setup.py extension
32
+ python -m pip install -U -e .[dev]
36
33
- name : Running 3.7 Tests
37
34
if : matrix.python-version == 3.7
38
35
env :
Original file line number Diff line number Diff line change 30
30
python-version : ${{ matrix.python-version }}
31
31
- name : Install dependencies
32
32
run : |
33
- python -m pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple -U -e .[dev]
34
- python setup.py build
35
- python setup.py webhost --branch-name=dev
36
- python setup.py extension
33
+ python -m pip install -U -e .[dev]
37
34
- name : Running 3.7 Tests
38
35
if : matrix.python-version == 3.7
39
36
env :
Original file line number Diff line number Diff line change 16
16
PYAZURE_WEBHOST_DEBUG = "PYAZURE_WEBHOST_DEBUG"
17
17
18
18
# CI test constants
19
- CONSUMPTION_DOCKER_TEST = "false "
20
- DEDICATED_DOCKER_TEST = "false "
19
+ CONSUMPTION_DOCKER_TEST = "CONSUMPTION_DOCKER_TEST "
20
+ DEDICATED_DOCKER_TEST = "DEDICATED_DOCKER_TEST "
Original file line number Diff line number Diff line change @@ -219,13 +219,13 @@ def setUpClass(cls):
219
219
else :
220
220
cls .host_stdout = tempfile .NamedTemporaryFile ('w+t' )
221
221
222
- _setup_func_app (TESTS_ROOT / script_dir )
223
222
try :
224
223
if is_envvar_true (CONSUMPTION_DOCKER_TEST ):
225
224
cls .webhost = WebHostConsumption (script_dir ).spawn_container ()
226
225
elif is_envvar_true (DEDICATED_DOCKER_TEST ):
227
226
cls .webhost = WebHostDedicated (script_dir ).spawn_container ()
228
227
else :
228
+ _setup_func_app (TESTS_ROOT / script_dir )
229
229
cls .webhost = start_webhost (script_dir = script_dir ,
230
230
stdout = cls .host_stdout )
231
231
except Exception :
You can’t perform that action at this time.
0 commit comments