-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Updated functions in cli.py to use argv[Optional[Sequence[str]] instead of no args - much easier to test * Added end to end build test & workflow trigger * Added additional test config to handle temporary directories, etc etc. for tests. * Updated docs to include instructions on running end to end build tests. --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Marc White <[email protected]>
- Loading branch information
1 parent
8d18b19
commit 39bea88
Showing
12 changed files
with
2,695 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Run end-to-end tests on Gadi | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
release_version: | ||
description: 'Release version' | ||
required: true | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Run end-to-end tests | ||
uses: appleboy/[email protected] | ||
with: | ||
host: gadi.nci.org.au | ||
username: ${{secrets.GADI_USER}} | ||
key: ${{secrets.DEPLOY_KEY}} | ||
script: | | ||
cd ${{secrets.GADI_REPO_PATH}} | ||
qsub bin/build_all.sh | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/bash -l | ||
|
||
#PBS -P iq82 | ||
#PBS -l storage=gdata/xp65+gdata/ik11+gdata/cj50+gdata/hh5+gdata/p73+gdata/dk92+gdata/al33+gdata/rr3+gdata/fs38+gdata/oi10 | ||
#PBS -q normal | ||
#PBS -W block=true | ||
#PBS -l walltime=00:30:00 | ||
#PBS -l mem=32gb | ||
#PBS -l ncpus=12 | ||
#PBS -l wd | ||
#PBS -j oe | ||
|
||
########################################################################################### | ||
# Copyright 2022 ACCESS-NRI and contributors. See the top-level COPYRIGHT file for details. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
# Description: | ||
# Generate access-nri intake metacatalog from config files | ||
|
||
########################################################################################### | ||
|
||
set -e | ||
|
||
module use /g/data/xp65/public/modules | ||
module load conda/access-med-0.6 | ||
|
||
pytest -s --e2e tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
builder: AccessOm2Builder | ||
|
||
translator: DefaultTranslator | ||
|
||
sources: | ||
|
||
- metadata_yaml: /g/data/ik11/outputs/access-om2/1deg_jra55_ryf9091_gadi/metadata.yaml | ||
path: | ||
- /g/data/ik11/outputs/access-om2/1deg_jra55_ryf9091_gadi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
builder: null | ||
|
||
translator: Cmip5Translator | ||
|
||
sources: | ||
|
||
- metadata_yaml: /g/data/xp65/admin/access-nri-intake-catalog/config/metadata_sources/cmip5-al33/metadata.yaml | ||
path: | ||
- /g/data/al33/catalog/v2/esm/catalog.json |
Oops, something went wrong.