Skip to content

Commit cf808c8

Browse files
adam-grant-hendryLee-W
authored andcommitted
fix(pythonpackage.yml): use bash
Specify `shell` as `bash` in `Run tests and linters` step. Fixes: Issue #604
1 parent a9873d1 commit cf808c8

File tree

1 file changed

+26
-25
lines changed

1 file changed

+26
-25
lines changed

.github/workflows/pythonpackage.yml

+26-25
Original file line numberDiff line numberDiff line change
@@ -10,28 +10,29 @@ jobs:
1010
platform: [ubuntu-latest, macos-latest, windows-latest]
1111
runs-on: ${{ matrix.platform }}
1212
steps:
13-
- uses: actions/checkout@v2
14-
with:
15-
fetch-depth: 0
16-
- name: Set up Python ${{ matrix.python-version }}
17-
uses: actions/setup-python@v2
18-
with:
19-
python-version: ${{ matrix.python-version }}
20-
- name: Install dependencies
21-
run: |
22-
python -m pip install -U pip poetry
23-
poetry --version
24-
poetry install
25-
- name: Run tests and linters
26-
run: |
27-
git config --global user.email "action@github.com"
28-
git config --global user.name "GitHub Action"
29-
./scripts/test
30-
- name: Upload coverage to Codecov
31-
if: runner.os == 'Linux'
32-
uses: codecov/codecov-action@v1.0.3
33-
with:
34-
token: ${{secrets.CODECOV_TOKEN}}
35-
file: ./coverage.xml
36-
flags: unittests
37-
name: codecov-umbrella
13+
- uses: actions/checkout@v2
14+
with:
15+
fetch-depth: 0
16+
- name: Set up Python ${{ matrix.python-version }}
17+
uses: actions/setup-python@v2
18+
with:
19+
python-version: ${{ matrix.python-version }}
20+
- name: Install dependencies
21+
run: |
22+
python -m pip install -U pip poetry
23+
poetry --version
24+
poetry install
25+
- name: Run tests and linters
26+
run: |
27+
git config --global user.email "action@github.com"
28+
git config --global user.name "GitHub Action"
29+
./scripts/test
30+
shell: bash
31+
- name: Upload coverage to Codecov
32+
if: runner.os == 'Linux'
33+
uses: codecov/codecov-action@v1.0.3
34+
with:
35+
token: ${{secrets.CODECOV_TOKEN}}
36+
file: ./coverage.xml
37+
flags: unittests
38+
name: codecov-umbrella

0 commit comments

Comments
 (0)