Skip to content

Commit 59c5ffa

Browse files
committed
Optimize GitHub Actions workflow by using PowerShell on Windows runners for better compatibility
1 parent c263b38 commit 59c5ffa

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/tests.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ jobs:
1616
fail-fast: false
1717

1818
runs-on: ${{ matrix.os }}
19-
defaults:
20-
run:
21-
shell: bash
2219
steps:
2320
- name: Check out
2421
uses: actions/[email protected]
@@ -34,9 +31,11 @@ jobs:
3431
allow-prereleases: true
3532
- name: Install the project
3633
run: uv sync --all-extras --dev
34+
shell: bash
3735

3836
- name: Run tests
3937
run: uv run python -Xutf8 -m pytest --cov --cov-config=pyproject.toml --cov-report=xml tests
38+
shell: bash
4039

4140
- name: Upload test results to Codecov
4241
if: ${{ !cancelled() }}
@@ -45,6 +44,7 @@ jobs:
4544
flags: python${{ matrix.python-version }}
4645
name: codecov-umbrella-test-results
4746
token: ${{ secrets.CODECOV_TOKEN }}
47+
shell: bash
4848
- name: Upload coverage to Codecov
4949
uses: codecov/codecov-action@v5
5050
with:
@@ -54,3 +54,4 @@ jobs:
5454
name: codecov-umbrella
5555
token: ${{ secrets.CODECOV_TOKEN }}
5656
verbose: true
57+
shell: bash

0 commit comments

Comments
 (0)