Skip to content

Commit 3aec9a7

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

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/python-unittests.yaml

+8-1
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

dev-requirements.txt

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ kubernetes==25.3.0
77
flake8==3.9.0
88
fsspec==2024.3.1
99
s3fs==2024.3.1
10-
google-api-core
1110
google-cloud-batch==0.17.14
1211
google-cloud-logging==3.10.0
1312
google-cloud-runtimeconfig==0.34.0

0 commit comments

Comments
 (0)