add requirements-test.txt file to organize python testing dependencies (#205)
* add a requirements-test.txt file to organize additional python
packages needed to support testing; update CI to install python
packages from dependency files
Signed-off-by: Karl W Schulz <karl.schulz@amd.com>
[ROCm/rocprofiler-compute commit: a6ace99bde]
这个提交包含在:
@@ -17,22 +17,25 @@ jobs:
|
||||
build:
|
||||
runs-on: [mi100, rhel9]
|
||||
env:
|
||||
TEST_DIR: ${RUNNER_TEMP}/omniperf
|
||||
PYTHONPATH: /share/sw/omniperf/python-libs
|
||||
PYTHONPATH: ${{ github.workspace }}/python-libs
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
submodules: recursive
|
||||
token: ${{ secrets.GH_PAT }}
|
||||
- name: pythonpath
|
||||
run: echo ${PYTHONPATH}
|
||||
- name: Install Python collateral (build and test)
|
||||
run: |
|
||||
pip3 install -t ${PYTHONPATH} -r requirements.txt
|
||||
pip3 install -t ${PYTHONPATH} -r requirements-test.txt
|
||||
- name: Configure
|
||||
run: |
|
||||
mkdir build
|
||||
cd build
|
||||
ml cmake
|
||||
cmake -DENABLE_COVERAGE=ON ..
|
||||
- name: Install Python testing collateral
|
||||
run: pip3 install pytest pytest-cov mock
|
||||
- name: Create HIP binary (vcopy)
|
||||
run: hipcc -o tests/vcopy ./sample/vcopy.cpp
|
||||
- name: Run [profile] mode
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
mock
|
||||
pytest
|
||||
pytest-cov
|
||||
在新工单中引用
屏蔽一个用户