Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add requirements-test.txt file to organize python testing dependencies #205

Merged
merged 5 commits into from
Nov 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions .github/workflows/mi100.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
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
Loading