Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/actions/regenerate/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@ runs:
- uses: ./.github/actions/setup
with:
python-version: 3.12
cache-esgf: true

- name: Verify registry
shell: bash
env:
QUIET: true
run: |
git config --global user.name "$GITHUB_ACTOR"
git config --global user.email "$CI_COMMIT_EMAIL"
Expand Down
11 changes: 11 additions & 0 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ inputs:
description: "The version of uv to use"
required: true
default: ">=0.4.20"
cache-esgf:
description: "Cache any downloaded ESGF data"
required: false
default: "false"

runs:
using: "composite"
Expand All @@ -27,3 +31,10 @@ runs:
shell: bash
run: |
uv sync --all-extras --dev --locked
- name: Cache downloaded ESGF data
uses: actions/cache@v4
if: ${{ inputs.cache-esgf == 'true' }}
with:
path: |
~/.esgf
key: esgf
3 changes: 3 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,11 @@ jobs:
- uses: ./.github/actions/setup
with:
python-version: ${{ matrix.python-version }}
cache-esgf: true

- name: Verify registry
env:
QUIET: true
run: |
make fetch-test-data
git diff --exit-code
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -151,4 +151,5 @@ dmypy.json

# Generated output
out
data-raw
.ref
1 change: 1 addition & 0 deletions changelog/16.feature.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Allow for the fetching of non-decimated datasets
8 changes: 6 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[project]
name = "cmip-ref-sample-data"
name = "ref-sample-data"
version = "0.3.2"
description = "CMIP Rapid Evaluation Framework Sample Data"
readme = "README.md"
Expand All @@ -13,6 +13,7 @@ dependencies = [
"matplotlib>=3.10.0",
"scipy>=1.15.0",
"xarray>=2024.10.0",
"typer>=0.15.1",
]

[project.license]
Expand All @@ -29,9 +30,12 @@ dev-dependencies = [
"bump-my-version>=0.29.0",
]

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.coverage.run]
source = ["packages"]
source = ["src"]
branch = true

[tool.coverage.report]
Expand Down
1 change: 1 addition & 0 deletions ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ ignore = [
"D200",
"D400",
"UP007",
"S101" # Use of `assert` detected
]

[lint.per-file-ignores]
Expand Down
Loading