Skip to content

Commit 7b2916e

Browse files
author
narrieta@microsoft
committed
TEST
1 parent 41e9bbd commit 7b2916e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/ci_pr.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,6 @@ jobs:
7676
name: "Python ${{ matrix.python-version }} Unit Tests"
7777
runs-on: ubuntu-20.04
7878

79-
env:
80-
NOSEOPTS: "--with-timer ${{ matrix.additional-nose-opts }}"
81-
8279
steps:
8380

8481
- name: Checkout WALinuxAgent
@@ -167,6 +164,11 @@ jobs:
167164
if [[ "${{ matrix.python-version }}" =~ ^3\.[1-9][0-9]+$ ]]; then
168165
./ci/pytest.sh
169166
else
167+
if [[ "${{ matrix.use_virtual_environment}}" == "true" ]]; then
168+
NOSEOPTS="${{ matrix.additional-nose-opts }}"
169+
else
170+
NOSEOPTS="--with-timer ${{ matrix.additional-nose-opts }}"
171+
fi
170172
./ci/nosetests.sh
171173
fi
172174

0 commit comments

Comments
 (0)