From ba7ce7f9d80660fbded7645038d2e201fd9eb064 Mon Sep 17 00:00:00 2001 From: "Karl W. Schulz" Date: Fri, 17 Nov 2023 12:30:39 -0700 Subject: [PATCH] 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 [ROCm/rocprofiler-compute commit: a6ace99bde35d8aef0b6a832723aaf4c47695e98] --- .../rocprofiler-compute/.github/workflows/mi100.yml | 11 +++++++---- projects/rocprofiler-compute/requirements-test.txt | 3 +++ 2 files changed, 10 insertions(+), 4 deletions(-) create mode 100644 projects/rocprofiler-compute/requirements-test.txt diff --git a/projects/rocprofiler-compute/.github/workflows/mi100.yml b/projects/rocprofiler-compute/.github/workflows/mi100.yml index bfe1ed2533..617f75effc 100644 --- a/projects/rocprofiler-compute/.github/workflows/mi100.yml +++ b/projects/rocprofiler-compute/.github/workflows/mi100.yml @@ -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 diff --git a/projects/rocprofiler-compute/requirements-test.txt b/projects/rocprofiler-compute/requirements-test.txt new file mode 100644 index 0000000000..27054f2588 --- /dev/null +++ b/projects/rocprofiler-compute/requirements-test.txt @@ -0,0 +1,3 @@ +mock +pytest +pytest-cov