Trigger nightly tests on HPC

This commit is contained in:
Dusan Figala 2023-03-31 15:22:43 +02:00
parent 15639cd0eb
commit e760d43752
3 changed files with 34 additions and 0 deletions

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

@ -0,0 +1,13 @@
#!/bin/bash
set -e
module unload ecmwf-toolbox # Very important if you are testing your own build/install
module load cdo/new
module load numdiff
module load nccmp netcdf4/new
module load gnuparallel/new
module load python3
cd ~masn/REGRESSION_TESTING/ecCodes
./par-suite.sh -w $TMPDIR/install/eccodes

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:
@ -20,4 +24,5 @@ jobs:
ninja
aec
--parallel: 64
${{ inputs.nightly_test && '--post-script: .github/ci-nightly-test.sh' }}
secrets: inherit