Skip to content

Commit e3ce0b5

Browse files
author
Kiuk Chung
committed
[torchx][CI] Upgrade pip prior to installing deps for python-unittests
1 parent 9120355 commit e3ce0b5

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/python-unittests.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,21 @@ jobs:
2828
architecture: x64
2929
- name: Checkout TorchX
3030
uses: actions/checkout@v2
31+
- name: Upgrade pip
32+
run: |
33+
set -eux
34+
python -m pip install --upgrade pip
35+
pip --version
3136
- name: Install dependencies
3237
run: |
3338
set -eux
3439
pip install pytest pytest-cov
3540
# use legacy resolver for python 3.11, otherwise pip will timeout trying to resolve deps
3641
# TODO(kiukchung) long term we should narrowly scope dependency versions
3742
# see: https://pip.pypa.io/en/latest/topics/dependency-resolution/
38-
pip install --use-deprecated=legacy-resolver -e .[dev]
43+
pip install --use-deprecated=legacy-resolver -r dev-requirements.txt
44+
python setup.py develop
45+
#pip install --use-deprecated=legacy-resolver -e .[dev]
3946
- name: Run tests
4047
run: pytest --cov=./ --cov-report=xml
4148
- name: Upload coverage to Codecov

0 commit comments

Comments
 (0)