GitHub workflows

This commit is contained in:
Shahram Najm 2023-05-04 10:17:02 +00:00
parent 356df188fb
commit feca3f0a76
6 changed files with 60 additions and 1 deletions

View File

@ -1 +1 @@
-DENABLE_EXTRA_TESTS=1
-DENABLE_EXTRA_TESTS=1 -DECCODES_INSTALL_EXTRA_TOOLS=1

19
.github/ci-nightly-test.sh vendored Normal file
View File

@ -0,0 +1,19 @@
#!/bin/bash
set -e
# We do not want to come across the ecCodes tools in the toolbox
module unload ecmwf-toolbox
module load cdo/new
module load numdiff
module load nccmp
module load netcdf4/new
module load gnuparallel/new
module load python3
cd ~masn/REGRESSION_TESTING/ecCodes
./par-suite.sh -w $TMPDIR/install/eccodes
# For debugging specific test(s)
# ./seq-suite.sh -w $TMPDIR/install/eccodes -d -t py_

View File

@ -73,3 +73,12 @@ jobs:
repository: private-downstream-ci
event_type: downstream-ci-hpc
payload: '{"eccodes": "ecmwf/eccodes@${{ github.event.pull_request.head.sha || github.sha }}"}'
codecov:
name: code-coverage
if: ${{ !github.event.pull_request.head.repo.fork && github.event.action != 'labeled' || github.event.label.name == 'approved-for-ci' }}
uses: ./.github/workflows/reusable-ci.yml
with:
eccodes: ecmwf/eccodes@${{ github.event.pull_request.head.sha || github.sha }}
codecov: true
secrets: inherit

16
.github/workflows/nightly.yml vendored Normal file
View File

@ -0,0 +1,16 @@
name: nightly
on:
workflow_dispatch: ~
# Run at 20:00 UTC every day (on default branch)
schedule:
- cron: '0 20 * * *'
jobs:
test:
uses: ./.github/workflows/reusable-ci-hpc.yml
with:
eccodes: ecmwf/eccodes@${{ github.event.pull_request.head.sha || github.sha }}
nightly_test: true
secrets: inherit

View File

@ -6,6 +6,10 @@ on:
eccodes:
required: false
type: string
nightly_test:
required: false
type: boolean
default: false
jobs:
ci-hpc:
@ -19,5 +23,11 @@ jobs:
ecbuild
ninja
aec
netcdf4/new
--parallel: 64
--cmake-options: |
-DENABLE_EXTRA_TESTS=1
${{ inputs.nightly_test && '-DENABLE_PNG=1,-DENABLE_NETCDF=1' || '' }}
${{ inputs.nightly_test && '--post-script: .github/ci-nightly-test.sh' || '' }}
${{ inputs.nightly_test && '--force-build: true' || '' }}
secrets: inherit

View File

@ -6,6 +6,10 @@ on:
eccodes:
required: false
type: string
codecov:
required: false
type: boolean
default: false
jobs:
ci:
@ -14,6 +18,7 @@ jobs:
with:
repository: ${{ inputs.eccodes || 'ecmwf/eccodes@develop' }}
name_prefix: eccodes-
codecov_upload: ${{ inputs.codecov }}
build_package_inputs: |
repository: ${{ inputs.eccodes || 'ecmwf/eccodes@develop' }}
self_coverage: true