Use GitHub token to access regression tests

This commit is contained in:
Eugen Betke 2024-07-24 10:50:39 +02:00 committed by shahramn
parent 9f31ef8a39
commit 339d918734
2 changed files with 17 additions and 6 deletions

View File

@ -14,12 +14,19 @@ module load python3
version=$(cat $TMPDIR/eccodes/VERSION)
# regression_suite_dir=$TMPDIR/eccodes-regression-tests
# mkdir -p $regression_suite_dir
# git clone git@github.com:ecmwf/eccodes-regression-tests.git $regression_suite_dir
# cd $regression_suite_dir
env_check_param="$1"
echo env_check: $env_check_param
echo ENV_CHECK: $ENV_CHECK
cd ~masn/REGRESSION_TESTING/ecCodes
regression_suite_dir=$TMPDIR/eccodes-regression-tests
mkdir -p $regression_suite_dir
git clone https://oauth2:${GH_TOKEN}@github.com/ecmwf/eccodes-regression-tests.git $regression_suite_dir
#git clone https://${GH_TOKEN}:@github.com/ecmwf/eccodes-regression-tests.git $regression_suite_dir
#git clone https://${GH_TOKEN}:x-oauth-basic@github.com/ecmwf/eccodes-regression-tests.git $regression_suite_dir
#git clone https://${GH_TOKEN}@github.com/ecmwf/eccodes-regression-tests.git $regression_suite_dir
cd $regression_suite_dir
#cd ~masn/REGRESSION_TESTING/ecCodes
./par-suite.sh -w $TMPDIR/install/eccodes/$version
# For debugging specific test(s)

View File

@ -11,6 +11,10 @@ on:
type: boolean
default: false
env:
GH_TOKEN: ${{ secrets.GH_REPO_READ_TOKEN }}
ENV_CHECK: 'SUCCESS'
jobs:
ci-hpc:
name: ci-hpc
@ -28,6 +32,6 @@ jobs:
--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 && '--post-script: .github/ci-nightly-test.sh ${ENV_CHECK}' || '' }}
${{ inputs.nightly_test && '--force-build: true' || '' }}
secrets: inherit