Skip to content

Commit

Permalink
Define pytest-forked and pytest-xdist as tests target deps (#5292)
Browse files Browse the repository at this point in the history
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 <anatoly.myachev@intel.com>
  • Loading branch information
anmyachev authored Dec 1, 2024
1 parent d80b015 commit b7e0601
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ jobs:
- name: Install pip dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install cython setuptools wheel cmake==3.24 ninja pytest-forked pytest-xdist lit
python3 -m pip install cython setuptools wheel cmake==3.24 ninja lit
- name: Install Triton
env:
CUDA_HOME: "/usr/local/cuda"
Expand Down Expand Up @@ -569,7 +569,7 @@ jobs:
python3 -m venv ~/.venv
source ~/.venv/bin/activate
python3 -m pip install --upgrade pip
python3 -m pip install cython setuptools wheel cmake==3.24 ninja pytest-xdist lit pybind11
python3 -m pip install cython setuptools wheel cmake==3.24 ninja lit pybind11
- name: Install Triton
env:
TRITON_BUILD_WITH_O1: "true"
Expand All @@ -581,7 +581,7 @@ jobs:
echo "PATH is '$PATH'"
cd python
ccache --zero-stats
python3 -m pip install -v --no-build-isolation .
python3 -m pip install -v --no-build-isolation .[tests]
- name: CCache Stats
run: ccache --print-stats
- name: Inspect cache directories
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/integration-tests.yml.in
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ jobs:
- name: Install pip dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install cython setuptools wheel cmake==3.24 ninja pytest-forked pytest-xdist lit
python3 -m pip install cython setuptools wheel cmake==3.24 ninja lit

- name: Install Triton
env:
Expand Down Expand Up @@ -481,7 +481,7 @@ jobs:
python3 -m venv ~/.venv
source ~/.venv/bin/activate
python3 -m pip install --upgrade pip
python3 -m pip install cython setuptools wheel cmake==3.24 ninja pytest-xdist lit pybind11
python3 -m pip install cython setuptools wheel cmake==3.24 ninja lit pybind11
- name: Install Triton
env:
TRITON_BUILD_WITH_O1: "true"
Expand All @@ -493,7 +493,7 @@ jobs:
echo "PATH is '$PATH'"
cd python
ccache --zero-stats
python3 -m pip install -v --no-build-isolation .
python3 -m pip install -v --no-build-isolation .[tests]

- *print-ccache-stats
- *inspect-cache-directories-step
Expand Down
2 changes: 2 additions & 0 deletions python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -752,6 +752,8 @@ def get_git_commit_hash(length=8):
"isort",
"numpy",
"pytest",
"pytest-forked",
"pytest-xdist",
"scipy>=1.7.1",
"llnl-hatchet",
],
Expand Down

0 comments on commit b7e0601

Please sign in to comment.