Skip to content

Commit

Permalink
Styling of RISCOF reports
Browse files Browse the repository at this point in the history
Internal-tag: [#47914]
Signed-off-by: Maciej Kurc <[email protected]>
  • Loading branch information
mkurc-ant committed Nov 23, 2023
1 parent 9723579 commit 0eabecd
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/scripts/pytest/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,24 @@ a {
font-size: 20px;
font-weight: 700;
}

#environment {
color: #dfe1f1;
width: 100%;
}

#environment tr:nth-child(odd) {
background: none;
}

#environment td:first-child {
width: 25%;
}

#results-table {
color: #dfe1f1;
}

#yaml-table {
color: #dfe1f1;
}
12 changes: 12 additions & 0 deletions .github/workflows/test-riscof.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,16 @@ jobs:
mv riscof/coverage/coverage.info \
riscof/coverage/coverage_riscof_${{ matrix.coverage }}.info
- name: Prepare report
run: |
PYTEST_STYLE_SRC_DIR=${{ github.workspace }}/.github/scripts/pytest/
PYTEST_CSS=${PYTEST_STYLE_SRC_DIR}/css/styles.css
pushd riscof/riscof_work
bash ${PYTEST_STYLE_SRC_DIR}/style_pytest_report.sh ${PYTEST_STYLE_SRC_DIR} . report.html
echo "/* Custom CSS */" >>style.css
cat ${PYTEST_CSS} >>style.css
popd
- name: Pack artifacts
if: always()
uses: actions/upload-artifact@v3
Expand All @@ -161,3 +171,5 @@ jobs:
path: |
riscof/riscof_work/report.html
riscof/riscof_work/style.css
riscof/riscof_work/assets
riscof/riscof_work/script

0 comments on commit 0eabecd

Please sign in to comment.