Add github action to generate CSV coverage report

This commit is contained in:
Tamas Vajk
2021-05-04 16:20:35 +02:00
parent 8cbb3caaa4
commit 979034a17f
2 changed files with 160 additions and 0 deletions

44
.github/workflows/csv-coverage.yml vendored Normal file
View File

@@ -0,0 +1,44 @@
name: Build CSV flow coverage report
on:
push:
branches:
- main
- 'rc/**'
pull_request:
paths:
- '.github/workflows/csv-coverage.yml'
- 'misc/scripts/generate-csv-coverage-report.py'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Clone self (github/codeql)
uses: actions/checkout@v2
with:
path: codeql
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Download CodeQL CLI
uses: dsaltares/fetch-gh-release-asset@aa37ae5c44d3c9820bc12fe675e8670ecd93bd1c
with:
repo: "github/codeql-cli-binaries"
version: "latest"
file: "codeql-linux64.zip"
token: ${{ secrets.GITHUB_TOKEN }}
- name: Unzip CodeQL CLI
run: unzip -d codeql-cli codeql-linux64.zip
- name: Build modeled package list
run: |
PATH="$PATH:codeql-cli/codeql" python codeql/misc/scripts/generate-csv-coverage-report.py codeql
- name: Upload modeled package list
uses: actions/upload-artifact@v2
with:
name: csv-flow-model-coverage
path: csv-flow-model-coverage-*.csv