From 294723db6c59b26331989e492fb83f73edd6b1c5 Mon Sep 17 00:00:00 2001 From: Raynel Sanchez <87539502+raynelfss@users.noreply.github.com> Date: Tue, 26 Nov 2024 12:39:20 -0500 Subject: [PATCH] Fix: Use Poweshell formatting for scripts in Windows --- .github/workflows/tests.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index bd01c949518a..345085cb47eb 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -246,10 +246,9 @@ jobs: path: .stestr - name: Install dependencies run: | - set -e python -m pip install --upgrade pip setuptools wheel virtualenv - virtualenv test-job - source test-job/Scripts/activate + python -m virtualenv test-job + .\test-job\Scripts\activate python -m pip install -U pip setuptools wheel python -m pip install -U \ -c constraints.txt \ @@ -261,8 +260,7 @@ jobs: pip check - name: Install Optional packages run: | - set -e - source test-job/Scripts/activate + .\test-job\Scripts\activate pip install -c constraints.txt -r requirements-optional.txt pip check if: ${{ inputs.install-optionals }} @@ -270,7 +268,7 @@ jobs: run: | set -e chcp.com 65001 - source test-job/Scripts/activate + .\test-job\Scripts\activate python tools/report_numpy_state.py export PYTHONHASHSEED=$(python -S -c "import random; print(random.randint(1, 1024))") echo "PYTHONHASHSEED=$PYTHONHASHSEED"