Skip to content

Commit

Permalink
add a requirements-test.txt file to organize additional python
Browse files Browse the repository at this point in the history
packages needed to support testing; update CI to install python
packages from dependency files

Signed-off-by: Karl W Schulz <karl.schulz@amd.com>
  • Loading branch information
koomie committed Nov 17, 2023
1 parent df4d508 commit 4c63b8d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/mi100.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,23 @@ jobs:
runs-on: [mi100, rhel9]
env:
TEST_DIR: ${RUNNER_TEMP}/omniperf
PYTHONPATH: /share/sw/omniperf/python-libs
PYTHONPATH: ${RUNNER_TEMP}/python-libs
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
token: ${{ secrets.GH_PAT }}
- name: Install Python collateral (build and test)
run: |
pip3 install -t ${PYTHONPATH} requirements.txt
pip3 install -t ${PYTHONPATH} 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
Expand Down
3 changes: 3 additions & 0 deletions requirements-test.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
mock
pytest
pytest-cov

0 comments on commit 4c63b8d

Please sign in to comment.