Skip to content

Commit 7f1f80e

Browse files
committed
Update GitHub actions and readthedocs config
1 parent 017b804 commit 7f1f80e

3 files changed

Lines changed: 23 additions & 18 deletions

File tree

.github/workflows/ci.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,23 @@ jobs:
3535
run: echo "date=$(date +%Y-%m-%d)" >> "${GITHUB_OUTPUT}"
3636
-
3737
name: Create Environment with Mamba
38-
uses: mamba-org/setup-micromamba@v1
38+
uses: mamba-org/setup-micromamba@v3
3939
with:
40-
environment-name: climada_env_${{ matrix.python-version }}
41-
environment-file: requirements/env_climada.yml
40+
environment-name: climada_env
41+
environment-file: requirements/base.yml
4242
create-args: >-
43-
python=${{ matrix.python-version }}
4443
make
4544
# Persist environment for branch, Python version, single day
46-
cache-environment-key: env-${{ github.ref }}-${{ matrix.python-version }}-${{ steps.date.outputs.date }}
45+
cache-environment-key: env-${{ github.ref }}-${{ steps.date.outputs.date }}
4746
-
48-
name: Install CLIMADA
47+
name: Install uv
48+
uses: astral-sh/setup-uv@v8
49+
with:
50+
python-version: ${{ matrix.python-version }}
51+
-
52+
name: Install dependencies
4953
run: |
50-
python -m pip install "./[dev]"
54+
uv sync --locked --dev
5155
-
5256
name: Run Unit Tests
5357
run: |

.readthedocs.yml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,18 @@ sphinx:
44
configuration: doc/conf.py
55

66
build:
7-
os: "ubuntu-22.04"
7+
os: "ubuntu-lts-latest"
88
tools:
9-
python: "mambaforge-4.10"
10-
11-
# Append fixed Python version to requirements
12-
jobs:
13-
pre_create_environment:
14-
- echo " - python=3.11" >> requirements/env_climada.yml
9+
python: "miniforge3-latest"
1510

1611
conda:
17-
environment: requirements/env_climada.yml
12+
environment: requirements/base.yml
1813

1914
python:
2015
install:
21-
- method: pip
22-
path: .
23-
extra_requirements:
16+
- method: uv
17+
command: sync
18+
groups:
2419
- doc
2520

2621
formats:

requirements/base.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
name: climada_env
2+
channels:
3+
- conda-forge
4+
- nodefaults
5+
dependencies:
6+
- libgdal=3.12.*

0 commit comments

Comments
 (0)