-
Notifications
You must be signed in to change notification settings - Fork 44
56 lines (55 loc) · 2.05 KB
/
full_archive_ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Full Archive CI
on:
workflow_dispatch: # enable a manual trigger
inputs:
name:
description: 'Testing a manual trigger'
schedule:
- cron: "0 13 * * 1" # run every monday
jobs:
cloud-tests:
name: cloud-tests (${{ matrix.catalog}} catalog) | ${{ matrix.variable_id }} | ${{ matrix.experiment_id }} | ${{ matrix.grid_label }}
strategy:
fail-fast: false
matrix:
variable_id: ['zos','so', 'thetao', 'uo','o2']
experiment_id: ['historical','piControl', 'esm-hist', 'esm-piControl',
'ssp245', 'ssp370','ssp585', 'ssp119']
grid_label: ['gn', 'gr']
catalog: ['main']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Cache conda
uses: actions/cache@v4
env:
# Increase this value to reset cache if ci/environment-upstream-dev.yml has not changed
CACHE_NUMBER: 0
with:
path: ~/conda_pkgs_dir
key: ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles('ci/environment-upstream-dev.yml') }}
- uses: conda-incubator/[email protected]
with:
channels: conda-forge
mamba-version: '*'
channel-priority: strict
activate-environment: test_env_xmip # Defined in ci/environment-upstream-dev.yml
auto-update-conda: false
python-version: 3.8
environment-file: ci/environment-cloud-test.yml
use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly!
- name: Set up conda environment
shell: bash -l {0}
run: python -m pip install -e . --no-deps --force-reinstall
- name: Conda List
shell: bash -l {0}
run: conda list
- name: Check Machine Config
shell: bash -l {0}
run: lscpu
- name: Run Tests
shell: bash -l {0}
run: |
pwd
echo $PYTHONPATH
pytest --reruns 1 --reruns-delay 10 --maxfail 20 tests/test_preprocessing_cloud.py --gl ${{ matrix.grid_label }} --ei ${{ matrix.experiment_id }} --vi ${{ matrix.variable_id }} --cat ${{ matrix.catalog }}