From 391a7448c1adc921bcb8550c475d662098ec14f0 Mon Sep 17 00:00:00 2001 From: Ben Mares Date: Sun, 7 Dec 2025 15:31:20 +0100 Subject: [PATCH] Use bash instead of cmd for Windows CI jobs --- .github/workflows/tests.yml | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 97b3afcb59..37a56f8a06 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -201,7 +201,7 @@ jobs: PYTENSOR_FLAGS: floatX=${{ matrix.floatx }} defaults: run: - shell: cmd /C call {0} + shell: bash -leo pipefail {0} steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 with: @@ -212,7 +212,7 @@ jobs: create-args: >- python=${{matrix.python-version}} environment-name: pymc-test - init-shell: cmd.exe + init-shell: bash cache-environment: true - name: Install-pymc run: | @@ -220,10 +220,8 @@ jobs: python --version micromamba list - name: Run tests - # This job uses a cmd shell, therefore the environment variable syntax is different! - # The ">-" in the next line replaces newlines with spaces (see https://stackoverflow.com/a/66809682). - run: >- - python -m pytest -vv --cov=pymc --cov-report=xml --no-cov-on-fail --cov-report term --durations=50 %TEST_SUBSET% + run: | + python -m pytest -vv --cov=pymc --cov-report=xml --no-cov-on-fail --cov-report term --durations=50 $TEST_SUBSET - name: Upload coverage to Codecov uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1 with: @@ -357,7 +355,7 @@ jobs: PYTENSOR_FLAGS: floatX=${{ matrix.floatx }} defaults: run: - shell: cmd /C call {0} + shell: bash -leo pipefail {0} steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 with: @@ -368,7 +366,7 @@ jobs: create-args: >- python=${{matrix.python-version}} environment-name: pymc-test - init-shell: cmd.exe + init-shell: bash cache-environment: true - name: Install-pymc run: | @@ -376,10 +374,8 @@ jobs: python --version micromamba list - name: Run tests - # This job uses a cmd shell, therefore the environment variable syntax is different! - # The ">-" in the next line replaces newlines with spaces (see https://stackoverflow.com/a/66809682). - run: >- - python -m pytest -vv --cov=pymc --cov-report=xml --no-cov-on-fail --cov-report term --durations=50 %TEST_SUBSET% + run: | + python -m pytest -vv --cov=pymc --cov-report=xml --no-cov-on-fail --cov-report term --durations=50 $TEST_SUBSET - name: Upload coverage to Codecov uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1 with: