Skip to content

Commit 1293524

Browse files
committed
Merge branch 'main' of github.com:Climate-REF/climate-ref into add-metric-esmvaltool-zec
2 parents 8ef818f + 754e696 commit 1293524

File tree

136 files changed

+3545
-973
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

136 files changed

+3545
-973
lines changed

.bumpversion.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tool.bumpversion]
2-
current_version = "0.2.0"
2+
current_version = "0.3.1"
33
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
44
serialize = ["{major}.{minor}.{patch}"]
55
search = "{current_version}"

.github/workflows/ci-integration.yaml

Lines changed: 10 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -12,36 +12,16 @@ on:
1212
- cron: '2 15 * * *'
1313

1414
jobs:
15-
tests:
16-
# These tests are also run on each push to main and tagged version via the `ci` workflow
17-
if: github.event_name != 'push'
18-
strategy:
19-
fail-fast: false
20-
matrix:
21-
os: [ "ubuntu-latest" ]
22-
python-version: [ "3.10", "3.11", "3.12", "3.13" ]
23-
runs-on: "${{ matrix.os }}"
24-
defaults:
25-
run:
26-
shell: bash
27-
steps:
28-
- name: Check out repository
29-
uses: actions/checkout@v4
30-
- uses: ./.github/actions/setup
31-
with:
32-
python-version: ${{ matrix.python-version }}
33-
- name: Run tests
34-
run: |
35-
make fetch-test-data
36-
make test
3715
tests-slow:
3816
env:
3917
REF_TEST_OUTPUT: "test-outputs"
18+
REF_METRICS_ILAMB_DATA_DIR: "data/ilamb"
19+
PYTEST_ADDOPTS: "--slow"
4020
strategy:
4121
fail-fast: false
4222
matrix:
4323
os: [ "ubuntu-latest" ]
44-
python-version: [ "3.10" ]
24+
python-version: [ "3.11", "3.12", "3.13" ]
4525
runs-on: "${{ matrix.os }}"
4626
defaults:
4727
run:
@@ -52,11 +32,17 @@ jobs:
5232
- uses: ./.github/actions/setup
5333
with:
5434
python-version: ${{ matrix.python-version }}
35+
- name: Cache downloaded ILAMB data
36+
uses: actions/cache@v4
37+
with:
38+
path: |
39+
${{ env.REF_METRICS_ILAMB_DATA_DIR }}
40+
key: ilamb
5541
- name: Run tests
5642
run: |
5743
make fetch-test-data
5844
uv run python scripts/fetch-ilamb-data.py ilamb.txt
59-
make test-integration-slow
45+
make test
6046
# Upload the scratch and results directories as artifacts
6147
- name: Upload scratch artifacts
6248
uses: actions/upload-artifact@v4

.github/workflows/ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
fail-fast: false
2525
matrix:
2626
os: [ "ubuntu-latest" ]
27-
python-version: [ "3.10", "3.11", "3.12", "3.13" ]
27+
python-version: [ "3.11", "3.12", "3.13" ]
2828
runs-on: "${{ matrix.os }}"
2929
defaults:
3030
run:
@@ -60,7 +60,7 @@ jobs:
6060
fail-fast: false
6161
matrix:
6262
os: [ "ubuntu-latest" ]
63-
python-version: [ "3.10", "3.11", "3.12", "3.13" ]
63+
python-version: [ "3.11", "3.12", "3.13" ]
6464
runs-on: "${{ matrix.os }}"
6565
steps:
6666
- name: Check out repository

.github/workflows/deploy.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ jobs:
3636
version: "0.5.x"
3737
python-version: "3.12"
3838
- name: Verify installable
39+
# TODO: this step fails we fix https://github.com/Climate-REF/climate-ref/issues/217
40+
continue-on-error: true
3941
run: uv pip install dist/*.whl
4042
- name: Publish to PyPI
4143
run: |

.python-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.10
1+
3.11

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,13 @@ test-metrics-pmp: ## run the tests
108108
.PHONY: test-integration
109109
test-integration: ## run the integration tests
110110
uv run \
111-
pytest tests -m "not slow" \
111+
pytest tests \
112112
-r a -v
113113

114114
.PHONY: test-integration-slow
115115
test-integration-slow: ## run the integration tests, including the slow tests which may take a while
116116
uv run \
117-
pytest tests \
117+
pytest tests --slow \
118118
-r a -v
119119

120120
.PHONY: test-metrics-packages

README.md

Lines changed: 4 additions & 2 deletions

changelog/113.feature.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog/115.feature.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog/117.feature.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)