Skip to content

Commit

Permalink
TEST
Browse files Browse the repository at this point in the history
  • Loading branch information
narrieta@microsoft committed Jan 15, 2025
1 parent 7d9398d commit 7fda51e
Showing 1 changed file with 17 additions and 18 deletions.
35 changes: 17 additions & 18 deletions .github/workflows/ci_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,24 @@ jobs:
sudo ./tests/python_eol/patch_python_venv.sh "${{ matrix.python-version }}"
fi
- name: Execute Unit Tests
run: |
if [[ "${{ matrix.use_virtual_environment}}" == "true" ]]; then
source /home/waagent/virtualenv/python${{ matrix.python-version }}/bin/activate
fi
if [[ "${{ matrix.python-version }}" =~ ^3\.[1-9][0-9]+$ ]]; then
./ci/pytest.sh
else
if [[ "${{ matrix.use_virtual_environment}}" == "true" ]]; then
export NOSEOPTS="--verbose ${{ matrix.additional-nose-opts }}"
else
export NOSEOPTS="--verbose --with-timer ${{ matrix.additional-nose-opts }}"
fi
./ci/nosetests.sh
fi
- name: Run pylint
if: matrix.use_virtual_environment == false
if: matrix.use_virtual_environment == false && (success() || (failure() && (steps.install-dependencies.outcome == 'success' || steps.install-venv.outcome == 'success')))
run: |
#
# List of files/directories to be checked by pylint.
Expand Down Expand Up @@ -113,23 +129,6 @@ jobs:
pylint $PYLINT_OPTIONS $PYLINT_FILES
- name: Execute Unit Tests
if: success() || (failure() && (steps.install-dependencies.outcome == 'success' || steps.install-venv.outcome == 'success'))
run: |
if [[ "${{ matrix.use_virtual_environment}}" == "true" ]]; then
source /home/waagent/virtualenv/python${{ matrix.python-version }}/bin/activate
fi
if [[ "${{ matrix.python-version }}" =~ ^3\.[1-9][0-9]+$ ]]; then
./ci/pytest.sh
else
if [[ "${{ matrix.use_virtual_environment}}" == "true" ]]; then
export NOSEOPTS="--verbose ${{ matrix.additional-nose-opts }}"
else
export NOSEOPTS="--verbose --with-timer ${{ matrix.additional-nose-opts }}"
fi
./ci/nosetests.sh
fi
- name: Compile Coverage
if: matrix.python-version == '3.9'
run: |
Expand Down

0 comments on commit 7fda51e

Please sign in to comment.