Update CI configuration
Signed-off-by: Karl W Schulz <karl.schulz@amd.com>
[ROCm/rocprofiler-compute commit: e63c24c618]
This commit is contained in:
committed by
Karl W. Schulz
parent
06f3fefa8e
commit
0dc03e2157
+16
-30
@@ -23,7 +23,6 @@ jobs:
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
PYTHONPATH: /home1/ciuser/omniperf_deps
|
PYTHONPATH: /home1/ciuser/omniperf_deps
|
||||||
# PYTHONPATH: ${{ github.workspace }}/python-libs
|
|
||||||
name: ROCm v${{ matrix.version }}
|
name: ROCm v${{ matrix.version }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
@@ -55,10 +54,10 @@ jobs:
|
|||||||
cmake -DENABLE_COVERAGE=ON -DPYTEST_NUMPROCS=8 ..
|
cmake -DENABLE_COVERAGE=ON -DPYTEST_NUMPROCS=8 ..
|
||||||
- name: Create HIP binary (vcopy)
|
- name: Create HIP binary (vcopy)
|
||||||
run: hipcc -o tests/vcopy ./sample/vcopy.cpp
|
run: hipcc -o tests/vcopy ./sample/vcopy.cpp
|
||||||
## - name: Run [profile] mode
|
- name: Run [profile] mode
|
||||||
## run: |
|
run: |
|
||||||
## cd build
|
cd build
|
||||||
## srun -N 1 -J omniperf -p ci -t 00:20:00 ctest -j 4 --resource-spec-file ../tests/4gpus.json --verbose -L profile
|
srun -N 1 -J omniperf -p ci -t 00:20:00 ctest -j 4 --resource-spec-file ../tests/4gpus.json --verbose -L profile
|
||||||
- name: Run [analyze workloads] mode
|
- name: Run [analyze workloads] mode
|
||||||
if: '!cancelled()'
|
if: '!cancelled()'
|
||||||
run: |
|
run: |
|
||||||
@@ -75,28 +74,15 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
files: |
|
files: |
|
||||||
tests/**/test_*.xml
|
tests/**/test_*.xml
|
||||||
## - name: Alternate coverage report
|
- name: Summarize code coverage
|
||||||
## uses: irongut/CodeCoverageSummary@v1.3.0
|
if: always()
|
||||||
## if: always()
|
run: coverage report
|
||||||
## with:
|
- name: Upload code coverage
|
||||||
## filename: tests/coverage.xml
|
uses: zgosalvez/github-actions-report-lcov@v3
|
||||||
## format: markdown
|
if: always()
|
||||||
##
|
with:
|
||||||
### - name: Code coverage summary
|
coverage-files: tests/coverage.info
|
||||||
### uses: 5monkeys/cobertura-action@master
|
minimum-coverage: 35
|
||||||
### if: always()
|
artifact-name: code-coverage-report
|
||||||
### with:
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
### path: tests/coverage.xml
|
update-comment: true
|
||||||
### minimum_coverage: 45
|
|
||||||
### - name: Alternate coverage report
|
|
||||||
### uses: insightsengineering/coverage-action@v2
|
|
||||||
### if: always()
|
|
||||||
### with:
|
|
||||||
### path: tests/coverage.xml
|
|
||||||
### - name: Pytest coverage comment
|
|
||||||
### if: '!cancelled()'
|
|
||||||
### uses: MishaKav/pytest-coverage-comment@v1.1.48
|
|
||||||
### with:
|
|
||||||
### pytest-xml-coverage-path: 'tests/coverage.xml'
|
|
||||||
### # junitxml-path: 'tests/test-results.xml'
|
|
||||||
### coverage-path-prefix: src/
|
|
||||||
|
|||||||
@@ -174,7 +174,7 @@ option(ENABLE_COVERAGE "Enable code coverage" OFF)
|
|||||||
set(COV_OPTION "")
|
set(COV_OPTION "")
|
||||||
if(${ENABLE_COVERAGE})
|
if(${ENABLE_COVERAGE})
|
||||||
set(COV_OPTION "--cov=src" "--cov-append" "--cov-report=term-missing"
|
set(COV_OPTION "--cov=src" "--cov-append" "--cov-report=term-missing"
|
||||||
"--cov-report=xml:tests/coverage.xml")
|
"--cov-report=lcov:tests/coverage.info")
|
||||||
# "--cov-report=term-missing" "--cov-report=xml:tests/coverage.xml")
|
# "--cov-report=term-missing" "--cov-report=xml:tests/coverage.xml")
|
||||||
endif()
|
endif()
|
||||||
message(STATUS "Code coverage: ${ENABLE_COVERAGE}")
|
message(STATUS "Code coverage: ${ENABLE_COVERAGE}")
|
||||||
|
|||||||
Reference in New Issue
Block a user