Skip to content

Commit 47b42ef

Browse files
committed
two scripts
1 parent 9abfa84 commit 47b42ef

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

.github/Scripts/e2e-tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!/usr/bin/env bash
2-
python -m pytest -q -n auto --dist loadfile --reruns 4 --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
2+
python -m pytest -q -n auto --dist loadfile --reruns 4 --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/Scripts/fwpc-tests.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env bash
2+
python -m pytest -q -n auto --dist loadfile --reruns 4 --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

.github/workflows/ci_e2e_workflow.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
retry 5 python setup.py extension
7676
mkdir logs
7777
- name: Grant execute permission
78-
run: chmod +x .github/Scripts/e2e-tests.sh
78+
run: chmod +x .github/Scripts/fwpc-tests.sh .github/Scripts/e2e-tests.sh
7979
- name: Running 3.7 Tests
8080
if: matrix.python-version == 3.7
8181
env:
@@ -87,7 +87,7 @@ jobs:
8787
AzureWebJobsEventGridTopicUri: ${{ secrets.LinuxEventGridTopicUriString37 }}
8888
AzureWebJobsEventGridConnectionKey: ${{ secrets.LinuxEventGridConnectionKeyString37 }}
8989
ARCHIVE_WEBHOST_LOGS: ${{ github.event.inputs.archive_webhost_logging }}
90-
run: .github/Scripts/e2e-tests.sh
90+
run: ..github/Scripts/fwpc-tests.sh .github/Scripts/e2e-tests.sh
9191
- name: Running 3.8 Tests
9292
if: matrix.python-version == 3.8
9393
env:
@@ -99,7 +99,7 @@ jobs:
9999
AzureWebJobsEventGridTopicUri: ${{ secrets.LinuxEventGridTopicUriString38 }}
100100
AzureWebJobsEventGridConnectionKey: ${{ secrets.LinuxEventGridConnectionKeyString38 }}
101101
ARCHIVE_WEBHOST_LOGS: ${{ github.event.inputs.archive_webhost_logging }}
102-
run: .github/Scripts/e2e-tests.sh
102+
run: .github/Scripts/fwpc-tests.sh .github/Scripts/e2e-tests.sh
103103
- name: Running 3.9 Tests
104104
if: matrix.python-version == 3.9
105105
env:
@@ -111,7 +111,7 @@ jobs:
111111
AzureWebJobsEventGridTopicUri: ${{ secrets.LinuxEventGridTopicUriString39 }}
112112
AzureWebJobsEventGridConnectionKey: ${{ secrets.LinuxEventGridConnectionKeyString39 }}
113113
ARCHIVE_WEBHOST_LOGS: ${{ github.event.inputs.archive_webhost_logging }}
114-
run: .github/Scripts/e2e-tests.sh
114+
run: .github/Scripts/fwpc-tests.sh .github/Scripts/e2e-tests.sh
115115
- name: Running 3.10 Tests
116116
if: matrix.python-version == 3.10
117117
env:
@@ -123,7 +123,7 @@ jobs:
123123
AzureWebJobsEventGridTopicUri: ${{ secrets.LinuxEventGridTopicUriString310 }}
124124
AzureWebJobsEventGridConnectionKey: ${{ secrets.LinuxEventGridConnectionKeyString310 }}
125125
ARCHIVE_WEBHOST_LOGS: ${{ github.event.inputs.archive_webhost_logging }}
126-
run: .github/Scripts/e2e-tests.sh
126+
run: .github/Scripts/fwpc-tests.sh .github/Scripts/e2e-tests.sh
127127
- name: Running 3.11 Tests
128128
if: matrix.python-version == 3.11
129129
env:
@@ -135,7 +135,7 @@ jobs:
135135
AzureWebJobsEventGridTopicUri: ${{ secrets.LinuxEventGridTopicUriString311 }}
136136
AzureWebJobsEventGridConnectionKey: ${{ secrets.LinuxEventGridConnectionKeyString311 }}
137137
ARCHIVE_WEBHOST_LOGS: ${{ github.event.inputs.archive_webhost_logging }}
138-
run: .github/Scripts/e2e-tests.sh
138+
run: .github/Scripts/fwpc-tests.sh .github/Scripts/e2e-tests.sh
139139
- name: Codecov
140140
uses: codecov/codecov-action@v3
141141
with:

python/test/worker.config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"description":{
33
"language":"python",
44
"extensions":[".py"],
5-
"defaultExecutablePath":"python",
5+
"defaultExecutablePath":"C:\\Users\\victoriahall\\Documents\\repos\\azure-functions-python-worker\\.venv\\Scripts\\python.exe",
66
"defaultWorkerPath":"worker.py",
77
"workerIndexing": "true"
88
}

0 commit comments

Comments
 (0)