Merge pull request #97 from ecmwf/feature/ci-nightly-tests

Run nightly tests
This commit is contained in:
shahramn 2023-04-05 16:43:06 +01:00 committed by GitHub
commit 3354ce7e7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 43 additions and 0 deletions

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_

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,9 @@ jobs:
ecbuild
ninja
aec
netcdf4/new
--parallel: 64
${{ inputs.nightly_test && '--post-script: .github/ci-nightly-test.sh' }}
${{ inputs.nightly_test && '--force-build: true' }}
${{ inputs.nightly_test && '--cmake-options: -DENABLE_PNG=1,-DENABLE_NETCDF=1' }}
secrets: inherit