From 83064b124c7416be805ae341582c36958ce039f7 Mon Sep 17 00:00:00 2001 From: Jim Edwards Date: Mon, 18 Nov 2024 09:33:16 -0700 Subject: [PATCH] trouble finding repo --- .github/workflows/derecho.yaml | 16 ++++++++++++++++ .github/workflows/reusable.yaml | 22 ++++++++-------------- 2 files changed, 24 insertions(+), 14 deletions(-) diff --git a/.github/workflows/derecho.yaml b/.github/workflows/derecho.yaml index 23b36f066..208c7ba64 100644 --- a/.github/workflows/derecho.yaml +++ b/.github/workflows/derecho.yaml @@ -7,6 +7,22 @@ on: types: [ labeled ] jobs: + setup: + if: ${{ github.event.label.name == 'run-pr-tests' }} + runs-on: hpc-runner + + steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + repository: ESCOMP/CESM + path: CESM + - name: Run git-fleximod + run: | + pwd + module list + ./bin/git-fleximod update + reusable: runs-on: hpc-runner strategy: diff --git a/.github/workflows/reusable.yaml b/.github/workflows/reusable.yaml index 30063d4f7..64439a555 100644 --- a/.github/workflows/reusable.yaml +++ b/.github/workflows/reusable.yaml @@ -8,23 +8,17 @@ on: jobs: test: runs-on: hpc-runner + working-directory: $GITHUB_WORKSPACE/CESM steps: - - name: Checkout code - uses: actions/checkout@v4 - - name: Run git-fleximod - run: | - pwd - module list - ./bin/git-fleximod update - - name: Run ${{ inputs.compiler }} tests - continue-on-error: true - run: | + - name: Run ${{ inputs.compiler }} tests + continue-on-error: true + run: | pwd cd cime/scripts module load cmake qcmd -v PROJECT=P93300606 -A P93300606 -l walltime=02:00:00 -- ./create_test --xml-machine derecho\ - --xml-category github --no-run --compiler ${{ inputs.compiler }} --test-id ghtest.${{ inputs.compiler }} - - name: check status - run: | + --xml-category github --no-run --compiler ${{ inputs.compiler }} --test-id githubtests.${{ inputs.compiler }} + - name: check status + run: | cd $SCRATCH - ./cs.status.ghtest.${{ inputs.compiler }} --expected-fails-file $GITHUB_WORKSPACE/cime_config/testfiles/ExpectedTestFails.xml \ No newline at end of file + ./cs.status.ghtest.${{ inputs.compiler }} --expected-fails-file $GITHUB_WORKSPACE/CESM/cime_config/testfiles/ExpectedTestFails.xml \ No newline at end of file