-
Notifications
You must be signed in to change notification settings - Fork 0
72 lines (62 loc) · 2.68 KB
/
nightly.yml
File metadata and controls
72 lines (62 loc) · 2.68 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# Nightly Compatibility Tests
#
# Tests the AFT deployment against the latest (unreleased) versions
# of all components to detect compatibility issues early.
name: Nightly Compatibility
on:
schedule:
# Run daily at 03:00 UTC
- cron: '0 3 * * *'
workflow_dispatch:
permissions:
contents: read
jobs:
test-latest:
if: github.repository == 'Climate-REF/climate-ref-aft'
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- name: "pinned"
description: "Test with pinned (released) versions"
- name: "latest-core"
description: "Test with latest core from main branch"
- name: "latest-all"
description: "Test with latest core and available providers from main branches"
name: ${{ matrix.name }}
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Install pinned dependencies
run: uv sync --all-extras
- name: Upgrade to latest core (dev)
if: matrix.name == 'latest-core' || matrix.name == 'latest-all'
run: |
uv pip install \
"climate-ref-core @ git+https://github.com/Climate-REF/climate-ref.git@main#subdirectory=packages/climate-ref-core" \
"climate-ref @ git+https://github.com/Climate-REF/climate-ref.git@main#subdirectory=packages/climate-ref"
- name: Upgrade to latest providers (dev)
if: matrix.name == 'latest-all'
run: |
# Install latest providers from their respective main branches
# These URLs will be updated once provider repos are created
uv pip install \
"climate-ref-esmvaltool @ git+https://github.com/Climate-REF/climate-ref.git@main#subdirectory=packages/climate-ref-esmvaltool" \
"climate-ref-pmp @ git+https://github.com/Climate-REF/climate-ref.git@main#subdirectory=packages/climate-ref-pmp"
# ILAMB - from standalone repo once available:
# uv pip install "climate-ref-ilamb @ git+https://github.com/Climate-REF/climate-ref-ilamb.git@main"
- name: Verify provider entry points
run: |
uv run python -c "
import importlib.metadata
eps = importlib.metadata.entry_points(group='climate-ref.providers')
names = {ep.name for ep in eps}
print(f'Discovered providers: {names}')
for expected in ['esmvaltool', 'pmp', 'ilamb']:
status = 'OK' if expected in names else 'MISSING'
print(f' {expected}: {status}')
"
- name: Run provider discovery test
run: uv run pytest tests/integration/test_cmip7_aft.py::test_provider_discovery -v --slow