Skip to content

Commit

Permalink
workflows testing
Browse files Browse the repository at this point in the history
  • Loading branch information
anton-seaice committed Jul 22, 2024
1 parent e4360bc commit 4b05f51
Showing 1 changed file with 14 additions and 22 deletions.
36 changes: 14 additions & 22 deletions .github/workflows/test-cice_ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,29 +47,14 @@ jobs:
uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: link
run: |
ln -s ${GITHUB_WORKSPACE}/../CICE ${HOME}/cice
# ls -al ${HOME}/
# ls -al ${GITHUB_WORKSPACE}/
- name: install conda environment
uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: cice
environment-file: configuration/scripts/machines/environment.yml
auto-activate-base: false
mamba-version: "*"
# - name: setup conda env
# run: |
# cd $HOME && mkdir -p cice-dirs/runs cice-dirs/baseline cice-dirs/input
# source $HOME/miniconda/bin/activate
# conda init tcsh
# cd $HOME/cice
# conda env create -f configuration/scripts/machines/environment.yml
- name: make test directories
run: |
ln -s ${GITHUB_WORKSPACE}/../CICE ${HOME}/cice
mkdir -p "$HOME/cice-dirs/runs" "$HOME/cice-dirs/baseline" "$HOME/cice-dirs/input"
# ls -al ${HOME}/
# ls -al ${GITHUB_WORKSPACE}/
- name: check for tabs
shell: /bin/csh
run: |
cd ${HOME}/cice/cicecore
set cnt = 0
Expand All @@ -83,6 +68,16 @@ jobs:
endif
end
exit $cnt
- name: install conda environment
uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: cice
environment-file: configuration/scripts/machines/environment.yml
auto-activate-base: false
mamba-version: "*"
- name: make test directories
run: |
# - name: setup conda env
# shell: /bin/bash {0}
# run: |
Expand All @@ -92,9 +87,6 @@ jobs:
# cd $HOME/cice
# conda env create -f configuration/scripts/machines/environment.yml
- name: check conda env

# See https://github.com/marketplace/actions/setup-miniconda#important ... its very hard to figure out how to get the conda environment activated correctly!!

run: |
conda activate cice && which clang && which gfortran && which mpicc && which mpifort && which make
clang --version
Expand Down

0 comments on commit 4b05f51

Please sign in to comment.