Skip to content

Initial skeleton of a more comprehensive CI test suite #10

Initial skeleton of a more comprehensive CI test suite

Initial skeleton of a more comprehensive CI test suite #10

# Copyright (C) 2020-2023 CERN and UCLouvain.
# Licensed under the GNU Lesser General Public License (version 3 or later).
# Created by: A. Valassi (Nov 2023) for the MG5aMC CUDACPP plugin.
# Further modified by: A. Valassi (2023) for the MG5aMC CUDACPP plugin.
#----------------------------------------------------------------------------------------------------------------------------------
name: Test all processes
#----------------------------------------------------------------------------------------------------------------------------------
on:
# Enable the possibility to manually trigger the all-processes workflow
workflow_dispatch:
# Trigger the all-processes workflow for pull requests to master
pull_request:
branches: [ master ]
# Trigger the all-processes workflow when new changes to the workflow are pushed
push:
paths: [ .github/workflows/testsuite* ]
#----------------------------------------------------------------------------------------------------------------------------------
jobs:
# See https://stackoverflow.com/a/75337311
oneprocess_pr:
strategy:
fail-fast: false # important to see all results even if one fails (fail-fast is true by default)
matrix:
# FIXME? Can the list of supported processes be specified only once in oneprocess.yml or allprocesses.yml?
process: [ee_mumu, gg_tt, gg_ttg, gg_ttgg, gg_ttggg, gg_tt01g, gq_ttq, pp_tt012j]
suffix: [mad, sa]
uses: ./.github/workflows/testsuite_oneprocess.yml
with:
process: ${{ matrix.process }}.${{ matrix.suffix }}
# By default, in allprocesses tests enable FPE tests when pushing, but not in pull requests
enableFPE: github.event_name != 'pull_request'

Check failure on line 41 in .github/workflows/testsuite_allprocesses.yml

View workflow run for this annotation

GitHub Actions / Test all processes

Invalid workflow file

The workflow is not valid. .github/workflows/testsuite_allprocesses.yml (Line: 41, Col: 18): Unexpected value 'github.event_name != 'pull_request''
# See https://stackoverflow.com/a/75337311
oneprocess_push:
strategy:
fail-fast: false # important to see all results even if one fails (fail-fast is true by default)
matrix:
# FIXME? Can the list of supported processes be specified only once in oneprocess.yml or allprocesses.yml?
process: [ee_mumu, gg_tt, gg_ttg, gg_ttgg, gg_ttggg, gg_tt01g, gq_ttq, pp_tt012j]
suffix: [mad, sa]
uses: ./.github/workflows/testsuite_oneprocess.yml
with:
process: ${{ matrix.process }}.${{ matrix.suffix }}
# By default, in allprocesses tests enable FPE tests when pushing, but not in pull requests
enableFPE: ${{ github.event_name }} != 'pull_request'
#----------------------------------------------------------------------------------------------------------------------------------