Skip to content

Commit b7e0601

Browse files
authored
Define pytest-forked and pytest-xdist as tests target deps (#5292)
This way, the dependencies needed for testing are localized in one place - `setup.py` (instead of several), which makes maintenance easier. Signed-off-by: Anatoly Myachev <[email protected]>
1 parent d80b015 commit b7e0601

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

.github/workflows/integration-tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ jobs:
236236
- name: Install pip dependencies
237237
run: |
238238
python3 -m pip install --upgrade pip
239-
python3 -m pip install cython setuptools wheel cmake==3.24 ninja pytest-forked pytest-xdist lit
239+
python3 -m pip install cython setuptools wheel cmake==3.24 ninja lit
240240
- name: Install Triton
241241
env:
242242
CUDA_HOME: "/usr/local/cuda"
@@ -569,7 +569,7 @@ jobs:
569569
python3 -m venv ~/.venv
570570
source ~/.venv/bin/activate
571571
python3 -m pip install --upgrade pip
572-
python3 -m pip install cython setuptools wheel cmake==3.24 ninja pytest-xdist lit pybind11
572+
python3 -m pip install cython setuptools wheel cmake==3.24 ninja lit pybind11
573573
- name: Install Triton
574574
env:
575575
TRITON_BUILD_WITH_O1: "true"
@@ -581,7 +581,7 @@ jobs:
581581
echo "PATH is '$PATH'"
582582
cd python
583583
ccache --zero-stats
584-
python3 -m pip install -v --no-build-isolation .
584+
python3 -m pip install -v --no-build-isolation .[tests]
585585
- name: CCache Stats
586586
run: ccache --print-stats
587587
- name: Inspect cache directories

.github/workflows/integration-tests.yml.in

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ jobs:
268268
- name: Install pip dependencies
269269
run: |
270270
python3 -m pip install --upgrade pip
271-
python3 -m pip install cython setuptools wheel cmake==3.24 ninja pytest-forked pytest-xdist lit
271+
python3 -m pip install cython setuptools wheel cmake==3.24 ninja lit
272272

273273
- name: Install Triton
274274
env:
@@ -481,7 +481,7 @@ jobs:
481481
python3 -m venv ~/.venv
482482
source ~/.venv/bin/activate
483483
python3 -m pip install --upgrade pip
484-
python3 -m pip install cython setuptools wheel cmake==3.24 ninja pytest-xdist lit pybind11
484+
python3 -m pip install cython setuptools wheel cmake==3.24 ninja lit pybind11
485485
- name: Install Triton
486486
env:
487487
TRITON_BUILD_WITH_O1: "true"
@@ -493,7 +493,7 @@ jobs:
493493
echo "PATH is '$PATH'"
494494
cd python
495495
ccache --zero-stats
496-
python3 -m pip install -v --no-build-isolation .
496+
python3 -m pip install -v --no-build-isolation .[tests]
497497

498498
- *print-ccache-stats
499499
- *inspect-cache-directories-step

python/setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -752,6 +752,8 @@ def get_git_commit_hash(length=8):
752752
"isort",
753753
"numpy",
754754
"pytest",
755+
"pytest-forked",
756+
"pytest-xdist",
755757
"scipy>=1.7.1",
756758
"llnl-hatchet",
757759
],

0 commit comments

Comments
 (0)