@@ -15,79 +15,79 @@ jobs:
1515
1616 steps :
1717 # Checkout the code
18- - name : Checkout code
19- uses : actions/checkout@v4
18+ - name : Checkout code
19+ uses : actions/checkout@v4
2020
21- - uses : mamba-org/setup-micromamba@v1
22- with :
23- micromamba-version : " 1.5.9-1" # any version from https://github.com/mamba-org/micromamba-releases
24- channels : tcevaer, conda-forge
25- init-shell : bash
26- post-cleanup : " all"
21+ - uses : mamba-org/setup-micromamba@v1
22+ with :
23+ micromamba-version : " 1.5.9-1" # any version from https://github.com/mamba-org/micromamba-releases
24+ channels : tcevaer, conda-forge
25+ init-shell : bash
26+ post-cleanup : " all"
2727
28- - name : Configure Conda channel priority to disabled
29- run : |
30- conda config --set channel_priority disabled
28+ - name : Configure Conda channel priority to disabled
29+ run : |
30+ conda config --set channel_priority disabled
3131
32- - name : Create environment and install tools
33- run : micromamba create -n grdwind_env pytest conda-build boa python=3.10 -y
32+ - name : Create environment and install tools
33+ run : micromamba create -n grdwind_env pytest conda-build boa python=3.10 -y
3434
35- - name : Build package
36- run : |
37- cd recipe
38- eval "$(micromamba shell hook --shell bash)"
39- micromamba activate grdwind_env
40- conda mambabuild .
35+ - name : Build package
36+ run : |
37+ cd recipe
38+ eval "$(micromamba shell hook --shell bash)"
39+ micromamba activate grdwind_env
40+ conda mambabuild .
4141
42- # Install the built package into the environment
43- - name : Install the built package
44- run : |
45- eval "$(micromamba shell hook --shell bash)"
46- micromamba activate grdwind_env
47- conda install --use-local grdwindinversion -y
42+ # Install the built package into the environment
43+ - name : Install the built package
44+ run : |
45+ eval "$(micromamba shell hook --shell bash)"
46+ micromamba activate grdwind_env
47+ conda install --use-local grdwindinversion -y
4848
49- # Cache the test data if previously downloaded (up to 10 GB limit for the cache)
50- # WARNING : modify the key if the data is modified !!
51- - name : Cache test data
52- uses : actions/cache@v4
53- id : cache
54- with :
55- path : ./test_data
56- key : test-data-v3
57- restore-keys : test-data-v3
49+ # Cache the test data if previously downloaded (up to 10 GB limit for the cache)
50+ # WARNING : modify the key if the data is modified !!
51+ - name : Cache test data
52+ uses : actions/cache@v4
53+ id : cache
54+ with :
55+ path : ./test_data
56+ key : test-data-v3
57+ restore-keys : test-data-v3
5858
59- # Download test data if not already cached
60- - name : Download test data
61- if : steps.cache.outputs.cache-hit != 'true' # Only download if cache miss
62- run : |
59+ # Download test data if not already cached
60+ - name : Download test data
61+ if : steps.cache.outputs.cache-hit != 'true' # Only download if cache miss
62+ run : |
6363 mkdir -p ./test_data/
6464 wget https://cloud.ifremer.fr/index.php/s/ExLQ2TnYAqozPWE/download -O /tmp/ecmwf.zip
6565 unzip /tmp/ecmwf.zip -d ./test_data/
6666 wget https://cloud.ifremer.fr/index.php/s/kRgdOOPsjoZieZR/download -O /tmp/l1.zip
6767 unzip /tmp/l1.zip -d ./test_data/
68- timeout-minutes : 200 # Adjust depending on the size of your data
68+ timeout-minutes : 200 # Adjust depending on the size of your data
6969
70- # Set up xsar configuration
71- - name : Setup xsar configuration
72- run : |
70+ # Set up xsar configuration
71+ - name : Setup xsar configuration
72+ run : |
7373 mkdir -p ~/.xsar
7474 echo "data_dir: /tmp" > ~/.xsar/config.yaml
7575 echo "auxiliary_dir: ./test_data/auxiliary" >> ~/.xsar/config.yaml
7676 echo "path_dataframe_aux: ./test_data/auxiliary/active_aux.csv" >> ~/.xsar/config.yaml
7777
78- # Set up grdwindinversion configuration
79- - name : Setup grdwindinversion configuration
80- run : |
78+ # Set up grdwindinversion configuration
79+ - name : Setup grdwindinversion configuration
80+ run : |
8181 mkdir -p ~/.grdwindinversion
8282 echo "'ecmwf_0100_1h': ./test_data/ECMWF/forecast/hourly/0100deg/netcdf_light/%Y/%j/ECMWF_FORECAST_0100_%Y%m%d%H%M_10U_10V.nc" > ~/.grdwindinversion/data_config.yaml
8383 echo "'ecmwf_0125_1h': ./test_data/ECMWF/0.125deg/1h/forecasts/%Y/%j/ecmwf_%Y%m%d%H%M.nc" >> ~/.grdwindinversion/data_config.yaml
8484 #echo "'nc_luts_path': ./test_data/GMFS/nc_luts" >> ~/.grdwindinversion/data_config.yaml
8585 #echo "'lut_cmod7_path': './test_data/GMFS/v1.6/GMF_cmod7_official/cmod7_and_python_script'" >> ~/.grdwindinversion/data_config.yaml
8686 #echo "'lut_ms1ahw_path': './test_data/GMFS/v1.6/GMF_cmodms1ahw'" >> ~/.grdwindinversion/data_config.yaml
8787
88- # Run the tests
89- - name : Run tests
90- run : |
88+ # Run the tests
89+ - name : Run tests
90+ run : |
9191 eval "$(micromamba shell hook --shell bash)"
9292 micromamba activate grdwind_env
9393 pytest
0 commit comments