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>
Этот коммит содержится в:
Karl W. Schulz
2023-11-17 12:30:39 -07:00
коммит произвёл GitHub
родитель df4d508a03
Коммит a6ace99bde
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
+3
Просмотреть файл
@@ -0,0 +1,3 @@
mock
pytest
pytest-cov