Skip to content

Commit 9bd36c6

Browse files
committed
[CI] use python executable instead of python3
python3 uses the default system version on macOS, while python is the one installed by the setup-python action.
1 parent 9ce5655 commit 9bd36c6

File tree

5 files changed

+25
-25
lines changed

5 files changed

+25
-25
lines changed

.github/workflows/build.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,17 @@ jobs:
2929
- name: Python info
3030
shell: bash -l {0}
3131
run: |
32-
which python3
33-
python3 --version
32+
which python
33+
python --version
3434
- name: Upgrade pip and install dependencies
3535
shell: bash -l {0}
3636
run: |
37-
python3 -m pip install --upgrade pip setuptools
38-
python3 -m pip install .[dev,publishing]
37+
python -m pip install --upgrade pip setuptools
38+
python -m pip install .[dev,publishing]
3939
- name: Run unit tests
4040
run: pytest -v
4141
- name: Verify that we can build the package
42-
run: python3 setup.py sdist bdist_wheel
42+
run: python setup.py sdist bdist_wheel
4343
- name: Build documentation
4444
run: make coverage doctest html
4545
working-directory: docs

.github/workflows/linting.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ jobs:
2626
- name: Python info
2727
shell: bash -l {0}
2828
run: |
29-
which python3
30-
python3 --version
29+
which python
30+
python --version
3131
- name: Upgrade pip and install dependencies
3232
shell: bash -l {0}
3333
run: |
34-
python3 -m pip install --upgrade pip setuptools
35-
python3 -m pip install .[dev,publishing]
34+
python -m pip install --upgrade pip setuptools
35+
python -m pip install .[dev,publishing]
3636
- name: Check style against standards using prospector
3737
run: prospector
3838
- name: Check import order

.github/workflows/notebooks.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ jobs:
2828
- name: Python info
2929
shell: bash -l {0}
3030
run: |
31-
which python3
32-
python3 --version
31+
which python
32+
python --version
3333
- name: Upgrade pip and install dependencies
3434
shell: bash -l {0}
3535
run: |
36-
python3 -m pip install --upgrade pip setuptools
37-
python3 -m pip install .[dev,publishing]
36+
python -m pip install --upgrade pip setuptools
37+
python -m pip install .[dev,publishing]
3838
- name: Run tutorial notebooks
3939
run: pytest --nbmake tutorials

.github/workflows/release.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ jobs:
2222
- name: Python info
2323
shell: bash -l {0}
2424
run: |
25-
which python3
26-
python3 --version
25+
which python
26+
python --version
2727
- name: Upgrade pip and install dependencies
2828
shell: bash -l {0}
2929
run: |
30-
python3 -m pip install --upgrade pip setuptools
31-
python3 -m pip install .[dev,publishing]
30+
python -m pip install --upgrade pip setuptools
31+
python -m pip install .[dev,publishing]
3232
3333
- name: Build wheel
3434
run: python setup.py bdist_wheel
@@ -52,13 +52,13 @@ jobs:
5252
- name: Python info
5353
shell: bash -l {0}
5454
run: |
55-
which python3
56-
python3 --version
55+
which python
56+
python --version
5757
- name: Upgrade pip and install dependencies
5858
shell: bash -l {0}
5959
run: |
60-
python3 -m pip install --upgrade pip setuptools
61-
python3 -m pip install .[dev,publishing]
60+
python -m pip install --upgrade pip setuptools
61+
python -m pip install .[dev,publishing]
6262
6363
- name: Build sdist
6464
run: python setup.py sdist

.github/workflows/sonarcloud.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ jobs:
2727
- name: Python info
2828
shell: bash -l {0}
2929
run: |
30-
which python3
31-
python3 --version
30+
which python
31+
python --version
3232
- name: Upgrade pip and install dependencies
3333
shell: bash -l {0}
3434
run: |
35-
python3 -m pip install --upgrade pip setuptools
36-
python3 -m pip install .[dev,publishing]
35+
python -m pip install --upgrade pip setuptools
36+
python -m pip install .[dev,publishing]
3737
- name: Check style against standards using prospector
3838
run: prospector --zero-exit --output-format grouped --output-format pylint:pylint-report.txt
3939
- name: Run unit tests with coverage

0 commit comments

Comments
 (0)