Skip to content

Commit

Permalink
Fix: Use Poweshell formatting for scripts in Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
raynelfss committed Nov 26, 2024
1 parent cd2254d commit 294723d
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -261,16 +260,15 @@ 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 }}
- name: Run Tests
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"
Expand Down

0 comments on commit 294723d

Please sign in to comment.