Add GitHub GUI reports to macOS, More Linux, and Linux Python 2 (#1405)

closes #1404
This commit is contained in:
Scott Fennell 2022-11-22 13:03:03 -06:00 committed by GitHub
parent 8611d7c40e
commit fb0a760a71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 90 additions and 8 deletions

View File

@ -0,0 +1,30 @@
name: 'Report More Linux'
on:
workflow_run:
workflows: ['More Linux'] # runs after CI workflow
types:
- completed
jobs:
report:
strategy:
fail-fast: false
matrix:
cfg:
#-------- Operating Systems ----------------
- { os: ubuntu, tag: 18.04, arch: debian, arch_ver: 10 }
- { os: ubuntu, tag: 20.04, arch: debian, arch_ver: 11 }
- { os: debian, tag: 10, arch: debian, arch_ver: 10 }
- { os: debian, tag: 11, arch: debian, arch_ver: 11 }
- { os: debian, tag: bookworm, arch: debian, arch_ver: 12 }
- { os: almalinux, tag: 8, arch: rhel, arch_ver: 8 }
python: [2, 3]
runs-on: ubuntu-latest
steps:
- uses: dorny/test-reporter@v1
with:
artifact: Trick_${{matrix.cfg.os}}${{matrix.cfg.tag}}_py${{matrix.python}} # artifact name
name: Results_Trick_${{matrix.cfg.os}}${{matrix.cfg.tag}}_py${{matrix.python}} # Name of the check run which will be created
path: '*.xml' # Path to test results (inside artifact .zip)
reporter: java-junit # Format of test results

View File

@ -1,4 +1,4 @@
name: 'Report' name: 'Report Linux'
on: on:
workflow_run: workflow_run:
@ -12,17 +12,12 @@ jobs:
matrix: matrix:
cfg: cfg:
#-------- Operating Systems ---------------- #-------- Operating Systems ----------------
- { os: ubuntu, tag: 18.04, arch: debian, arch_ver: 10 }
- { os: ubuntu, tag: 20.04, arch: debian, arch_ver: 11 }
- { os: ubuntu, tag: 22.04, arch: debian, arch_ver: 12 } - { os: ubuntu, tag: 22.04, arch: debian, arch_ver: 12 }
- { os: debian, tag: 10, arch: debian, arch_ver: 10 }
- { os: debian, tag: 11, arch: debian, arch_ver: 11 }
- { os: debian, tag: bookworm, arch: debian, arch_ver: 12 }
- { os: centos, tag: 7, arch: rhel, arch_ver: 7 } - { os: centos, tag: 7, arch: rhel, arch_ver: 7 }
- { os: rockylinux, tag: 8, arch: rhel, arch_ver: 8 } - { os: rockylinux, tag: 8, arch: rhel, arch_ver: 8 }
- { os: oraclelinux, tag: 8, arch: rhel, arch_ver: 8 } - { os: oraclelinux, tag: 8, arch: rhel, arch_ver: 8 }
- { os: almalinux, tag: 8, arch: rhel, arch_ver: 8 } python: [3]
python: [2, 3]
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:

29
.github/workflows/report_linux_py2.yml vendored Normal file
View File

@ -0,0 +1,29 @@
name: 'Report Linux Python 2'
on:
workflow_run:
workflows: ['Linux Python 2'] # runs after CI workflow
types:
- completed
jobs:
report:
strategy:
fail-fast: false
matrix:
cfg:
#-------- Operating Systems ----------------
- { os: ubuntu, tag: 22.04, arch: debian, arch_ver: 12 }
- { os: centos, tag: 7, arch: rhel, arch_ver: 7 }
- { os: rockylinux, tag: 8, arch: rhel, arch_ver: 8 }
- { os: oraclelinux, tag: 8, arch: rhel, arch_ver: 8 }
python: [2]
runs-on: ubuntu-latest
steps:
- uses: dorny/test-reporter@v1
with:
artifact: Trick_${{matrix.cfg.os}}${{matrix.cfg.tag}}_py${{matrix.python}} # artifact name
name: Results_Trick_${{matrix.cfg.os}}${{matrix.cfg.tag}}_py${{matrix.python}} # Name of the check run which will be created
path: '*.xml' # Path to test results (inside artifact .zip)
reporter: java-junit # Format of test results

20
.github/workflows/report_macos.yml vendored Normal file
View File

@ -0,0 +1,20 @@
name: 'Report macOS'
on:
workflow_run:
workflows: ['macOS'] # runs after CI workflow
types:
- completed
jobs:
report:
strategy:
fail-fast: false
runs-on: ubuntu-latest
steps:
- uses: dorny/test-reporter@v1
with:
artifact: Trick_macos # artifact name
name: Results_Trick_macos # Name of the check run which will be created
path: '*.xml' # Path to test results (inside artifact .zip)
reporter: java-junit # Format of test results

View File

@ -9,6 +9,7 @@ on:
- '.github/workflows/**' - '.github/workflows/**'
- '!.github/workflows/test_macos.yml' - '!.github/workflows/test_macos.yml'
pull_request: pull_request:
workflow_dispatch:
jobs: jobs:
macOS: macOS:
@ -38,3 +39,10 @@ jobs:
python3 -m venv .venv && source .venv/bin/activate && pip3 install -r requirements.txt python3 -m venv .venv && source .venv/bin/activate && pip3 install -r requirements.txt
export MAKEFLAGS=-j4 export MAKEFLAGS=-j4
cd ../../../; make test cd ../../../; make test
- name: Upload Tests
uses: actions/upload-artifact@v3.0.0
if: success() || failure() # run this step even if previous step failed
with:
name: Trick_macos
path: trick_test/*.xml
retention-days: 1