update to latest mom6_bathy #14
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 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 | |