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]
这个提交包含在:
Karl W. Schulz
2023-11-17 12:30:39 -07:00
提交者 GitHub
父节点 dd252eda37
当前提交 ba7ce7f9d8
修改 2 个文件,包含 10 行新增4 行删除
+7 -4
查看文件
@@ -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