-
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.
Showing
3 changed files
with
62 additions
and
48 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# This workflow will install CESM, create visualCaseGen conda env, and run all CI tests. | ||
|
||
name: visualCaseGen CI | ||
|
||
on: | ||
push: | ||
branches: [ "main", "ci" ] | ||
pull_request: | ||
branches: [ "main", "ci" ] | ||
|
||
jobs: | ||
ci_tests: | ||
name: visualCaseGen CI tests | ||
runs-on: "ubuntu-latest" | ||
defaults: | ||
run: | ||
shell: bash -el {0} | ||
steps: | ||
|
||
- name: Install xmllint | ||
run: sudo apt-get install -y libxml2-utils | ||
|
||
# clone CESM | ||
- uses: actions/checkout@v4 | ||
with: | ||
repository: alperaltuntas/CESM | ||
ref: cesm2_3_alpha17b_gui | ||
#submodules: recursive | ||
|
||
# Run manage_Externals | ||
- name: checkout CESM | ||
run: | | ||
./manage_externals/checkout_externals -o | ||
# set up conda | ||
- uses: conda-incubator/setup-miniconda@v3 | ||
|
||
# visualCaseGen conda env | ||
- name: Create visualCaseGen conda env | ||
run: | | ||
cd visualCaseGen/ | ||
conda env create --file environment.yml | ||
conda activate visualCaseGen | ||
# Run all tests | ||
- name: Run tests | ||
env: | ||
CIME_MODEL: "cesm" | ||
CIME_DRIVER: "nuopc" | ||
CIME_TEST_PLATFORM: ubuntu-latest | ||
run: | | ||
export SRC_PATH="${GITHUB_WORKSPACE}" | ||
mkdir -p /home/runner/cesm/scratch | ||
cd visualCaseGen/ | ||
conda activate visualCaseGen | ||
pytest tests | ||
This file was deleted.
Oops, something went wrong.
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