Skip to content

Commit db615eb

Browse files
committed
🐛 Fixes pip command on Travis and bumps actions/setup-python
Travis error was: ``` pyenv: pip3.7: command not found ``` Also bumps `actions/setup-python` to latest tag. Hopefully fixes recent `set-env` and `add-path` commands depreciation. The error is: ``` Error: Unable to process command '##[set-env name=pythonLocation;]/opt/hostedtoolcache/Python/3.7.9/x64' successfully. Error: The `set-env` command is disabled. Please upgrade to using Environment Files or opt into unsecure command execution by setting the `ACTIONS_ALLOW_UNSECURE_COMMANDS` environment variable to `true`. For more information see: https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/ ```
1 parent 406a258 commit db615eb

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/push.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- name: Checkout python-for-android
1212
uses: actions/checkout@v2
1313
- name: Set up Python 3.7
14-
uses: actions/setup-python@v2
14+
uses: actions/setup-python@v2.2.1
1515
with:
1616
python-version: 3.7
1717
- name: Run flake8
@@ -32,7 +32,7 @@ jobs:
3232
- name: Checkout python-for-android
3333
uses: actions/checkout@v2
3434
- name: Set up Python ${{ matrix.python-version }}
35-
uses: actions/setup-python@v2
35+
uses: actions/setup-python@v2.2.1
3636
with:
3737
python-version: ${{ matrix.python-version }}
3838
- name: Tox tests

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ jobs:
2424
- type -t deactivate && deactivate || true
2525
- export PATH=/opt/python/3.7.1/bin:$PATH
2626
# Install tox
27-
- pip3.7 install tox>=2.0
27+
- python3.7 -m pip install tox>=2.0
2828
# Install coveralls & dependencies
2929
# Note: pyOpenSSL needed to send the coveralls reports
30-
- pip3.7 install pyOpenSSL
31-
- pip3.7 install coveralls
30+
- python3.7 -m pip install pyOpenSSL
31+
- python3.7 -m pip install coveralls
3232
script:
3333
# ignores test_pythonpackage.py since it runs for too long
3434
- tox -- tests/ --ignore tests/test_pythonpackage.py

0 commit comments

Comments
 (0)