Skip to content

Commit 81976c4

Browse files
author
Gavin Aguiar
committed
Updating github workflows to add current dir to syspath
1 parent 899d023 commit 81976c4

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/ci_e2e_workflow.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ jobs:
7979
AzureWebJobsEventGridTopicUri: ${{ secrets.LinuxEventGridTopicUriString36 }}
8080
AzureWebJobsEventGridConnectionKey: ${{ secrets.LinuxEventGridConnectionKeyString36 }}
8181
run: |
82-
pytest --instafail --cov=./azure_functions_worker --cov-report xml --cov-branch --cov-append tests/endtoend
82+
python -m pytest --instafail --cov=./azure_functions_worker --cov-report xml --cov-branch --cov-append tests/endtoend
8383
- name: Running 3.7 Tests
8484
if: matrix.python-version == 3.7
8585
env:
@@ -90,7 +90,7 @@ jobs:
9090
AzureWebJobsEventGridTopicUri: ${{ secrets.LinuxEventGridTopicUriString37 }}
9191
AzureWebJobsEventGridConnectionKey: ${{ secrets.LinuxEventGridConnectionKeyString37 }}
9292
run: |
93-
pytest --instafail --cov=./azure_functions_worker --cov-report xml --cov-branch --cov-append tests/endtoend
93+
python -m pytest --instafail --cov=./azure_functions_worker --cov-report xml --cov-branch --cov-append tests/endtoend
9494
- name: Running 3.8 Tests
9595
if: matrix.python-version == 3.8
9696
env:
@@ -101,7 +101,7 @@ jobs:
101101
AzureWebJobsEventGridTopicUri: ${{ secrets.LinuxEventGridTopicUriString38 }}
102102
AzureWebJobsEventGridConnectionKey: ${{ secrets.LinuxEventGridConnectionKeyString38 }}
103103
run: |
104-
pytest --instafail --cov=./azure_functions_worker --cov-report xml --cov-branch --cov-append tests/endtoend
104+
python -m pytest --instafail --cov=./azure_functions_worker --cov-report xml --cov-branch --cov-append tests/endtoend
105105
- name: Running 3.9 Tests
106106
if: matrix.python-version == 3.9
107107
env:
@@ -112,7 +112,7 @@ jobs:
112112
AzureWebJobsEventGridTopicUri: ${{ secrets.LinuxEventGridTopicUriString39 }}
113113
AzureWebJobsEventGridConnectionKey: ${{ secrets.LinuxEventGridConnectionKeyString39 }}
114114
run: |
115-
pytest --instafail --cov=./azure_functions_worker --cov-report xml --cov-branch --cov-append tests/endtoend
115+
python -m pytest --instafail --cov=./azure_functions_worker --cov-report xml --cov-branch --cov-append tests/endtoend
116116
- name: Running 3.10 Tests
117117
if: matrix.python-version == 3.10
118118
env:
@@ -123,7 +123,7 @@ jobs:
123123
AzureWebJobsEventGridTopicUri: ${{ secrets.LinuxEventGridTopicUriString310 }}
124124
AzureWebJobsEventGridConnectionKey: ${{ secrets.LinuxEventGridConnectionKeyString310 }}
125125
run: |
126-
pytest --instafail --cov=./azure_functions_worker --cov-report xml --cov-branch --cov-append tests/endtoend
126+
python -m pytest --instafail --cov=./azure_functions_worker --cov-report xml --cov-branch --cov-append tests/endtoend
127127
- name: Codecov
128128
uses: codecov/[email protected]
129129
with:

.github/workflows/ut_ci_workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
retry 5 python setup.py extension
6969
- name: Test with pytest
7070
run: |
71-
pytest --instafail --cov=./azure_functions_worker --cov-report xml --cov-branch tests/unittests
71+
python -m pytest --instafail --cov=./azure_functions_worker --cov-report xml --cov-branch tests/unittests
7272
- name: Codecov
7373
uses: codecov/[email protected]
7474
with:

0 commit comments

Comments
 (0)