Skip to content

Commit f96cea1

Browse files
authored
CI: Specify full path to python executables.
1 parent d8ad56f commit f96cea1

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

.github/workflows/cygwin-test.yml

+11-11
Original file line numberDiff line numberDiff line change
@@ -26,31 +26,31 @@ jobs:
2626
packages: python39 python39-pip git
2727
- name: Tell git to trust this repo
2828
shell: bash.exe -eo pipefail -o igncr "{0}"
29-
run: git config --global --add safe.directory $(pwd)
29+
run: /usr/bin/git config --global --add safe.directory $(pwd)
3030
- name: Install dependencies and prepare tests
3131
shell: bash.exe -eo pipefail -o igncr "{0}"
3232
run: |
3333
set -x
34-
python -m pip install --upgrade pip setuptools wheel
35-
python --version; git --version
36-
git submodule update --init --recursive
37-
git fetch --tags
38-
pip install -r requirements.txt
39-
pip install -r test-requirements.txt
34+
/usr/bin/python -m pip install --upgrade pip setuptools wheel
35+
/usr/bin/python --version; /usr/bin/git --version
36+
/usr/bin/git submodule update --init --recursive
37+
/usr/bin/git fetch --tags
38+
/usr/bin/python -m pip install -r requirements.txt
39+
/usr/bin/python -m pip install -r test-requirements.txt
4040
TRAVIS=yes ./init-tests-after-clone.sh
41-
git config --global user.email "[email protected]"
42-
git config --global user.name "Travis Runner"
41+
/usr/bin/git config --global user.email "[email protected]"
42+
/usr/bin/git config --global user.name "Travis Runner"
4343
# If we rewrite the user's config by accident, we will mess it up
4444
# and cause subsequent tests to fail
4545
cat test/fixtures/.gitconfig >> ~/.gitconfig
4646
- name: Lint with flake8
4747
shell: bash.exe -eo pipefail -o igncr "{0}"
4848
run: |
4949
set -x
50-
flake8
50+
/usr/bin/python flake8
5151
- name: Test with pytest
5252
shell: bash.exe -eo pipefail -o igncr "{0}"
5353
run: |
5454
set -x
55-
pytest
55+
/usr/bin/python -m pytest
5656
continue-on-error: false

0 commit comments

Comments
 (0)