Skip to content

Commit 5722d9a

Browse files
authored
Removes pinned version for pytest (#2158)
1 parent 955ebb0 commit 5722d9a

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/regression_test.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,32 +64,38 @@ jobs:
6464
torch-spec: 'torch==2.5.1 --index-url https://download.pytorch.org/whl/cu121'
6565
gpu-arch-type: "cuda"
6666
gpu-arch-version: "12.6"
67+
dev-requirements-overrides: "s/^pytest$/pytest==7.4.0/"
6768
- name: CUDA 2.6
6869
runs-on: linux.g5.12xlarge.nvidia.gpu
6970
torch-spec: 'torch==2.6.0'
7071
gpu-arch-type: "cuda"
7172
gpu-arch-version: "12.6"
73+
dev-requirements-overrides: ""
7274
- name: CUDA 2.7
7375
runs-on: linux.g5.12xlarge.nvidia.gpu
7476
torch-spec: 'torch==2.7.0'
7577
gpu-arch-type: "cuda"
7678
gpu-arch-version: "12.6"
79+
dev-requirements-overrides: ""
7780

7881
- name: CPU 2.5.1
7982
runs-on: linux.4xlarge
8083
torch-spec: 'torch==2.5.1 --index-url https://download.pytorch.org/whl/cpu'
8184
gpu-arch-type: "cpu"
8285
gpu-arch-version: ""
86+
dev-requirements-overrides: "s/^pytest$/pytest==7.4.0/"
8387
- name: CPU 2.6
8488
runs-on: linux.4xlarge
8589
torch-spec: 'torch==2.6.0 --index-url https://download.pytorch.org/whl/cpu'
8690
gpu-arch-type: "cpu"
8791
gpu-arch-version: ""
92+
dev-requirements-overrides: ""
8893
- name: CPU 2.7
8994
runs-on: linux.4xlarge
9095
torch-spec: 'torch==2.7.0 --index-url https://download.pytorch.org/whl/cpu'
9196
gpu-arch-type: "cpu"
9297
gpu-arch-version: ""
98+
dev-requirements-overrides: ""
9399

94100
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
95101
with:
@@ -106,6 +112,7 @@ jobs:
106112
export PATH=/opt/rh/gcc-toolset-10/root/usr/bin/:$PATH
107113
python -m pip install --upgrade pip
108114
pip install ${{ matrix.torch-spec }}
115+
sed -i '${{ matrix.dev-requirements-overrides }}' dev-requirements.txt
109116
pip install -r dev-requirements.txt
110117
pip install .
111118
export CONDA=$(dirname $(dirname $(which conda)))

dev-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Test utilities
2-
pytest==7.4.0
2+
pytest
33
unittest-xml-reporting
44
parameterized
55
packaging

0 commit comments

Comments
 (0)