Update CI configuration
Signed-off-by: Karl W Schulz <karl.schulz@amd.com>
[ROCm/rocprofiler-compute commit: e63c24c618]
Этот коммит содержится в:
коммит произвёл
Karl W. Schulz
родитель
06f3fefa8e
Коммит
0dc03e2157
+16
-30
@@ -23,7 +23,6 @@ jobs:
|
||||
|
||||
env:
|
||||
PYTHONPATH: /home1/ciuser/omniperf_deps
|
||||
# PYTHONPATH: ${{ github.workspace }}/python-libs
|
||||
name: ROCm v${{ matrix.version }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
@@ -55,10 +54,10 @@ jobs:
|
||||
cmake -DENABLE_COVERAGE=ON -DPYTEST_NUMPROCS=8 ..
|
||||
- name: Create HIP binary (vcopy)
|
||||
run: hipcc -o tests/vcopy ./sample/vcopy.cpp
|
||||
## - name: Run [profile] mode
|
||||
## run: |
|
||||
## 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
|
||||
- name: Run [profile] mode
|
||||
run: |
|
||||
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
|
||||
- name: Run [analyze workloads] mode
|
||||
if: '!cancelled()'
|
||||
run: |
|
||||
@@ -75,28 +74,15 @@ jobs:
|
||||
with:
|
||||
files: |
|
||||
tests/**/test_*.xml
|
||||
## - name: Alternate coverage report
|
||||
## uses: irongut/CodeCoverageSummary@v1.3.0
|
||||
## if: always()
|
||||
## with:
|
||||
## filename: tests/coverage.xml
|
||||
## format: markdown
|
||||
##
|
||||
### - name: Code coverage summary
|
||||
### uses: 5monkeys/cobertura-action@master
|
||||
### if: always()
|
||||
### with:
|
||||
### path: tests/coverage.xml
|
||||
### 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/
|
||||
- name: Summarize code coverage
|
||||
if: always()
|
||||
run: coverage report
|
||||
- name: Upload code coverage
|
||||
uses: zgosalvez/github-actions-report-lcov@v3
|
||||
if: always()
|
||||
with:
|
||||
coverage-files: tests/coverage.info
|
||||
minimum-coverage: 35
|
||||
artifact-name: code-coverage-report
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
update-comment: true
|
||||
|
||||
@@ -174,7 +174,7 @@ option(ENABLE_COVERAGE "Enable code coverage" OFF)
|
||||
set(COV_OPTION "")
|
||||
if(${ENABLE_COVERAGE})
|
||||
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")
|
||||
endif()
|
||||
message(STATUS "Code coverage: ${ENABLE_COVERAGE}")
|
||||
|
||||
Ссылка в новой задаче
Block a user