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
11 changes: 9 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,17 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Install uv
uses: astral-sh/setup-uv@v7
with:
python-version: ${{ matrix.python-version }}
enable-cache: true
cache-suffix: ${{ runner.os }}-${{ matrix.python-version }}
activate-environment: true

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[dev,spatiotemporal]
uv pip install -e .[dev,spatiotemporal]

- name: Test with pytest
run: |
Expand Down
15 changes: 9 additions & 6 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,16 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
python-version: 3.12
enable-cache: true
cache-suffix: docs
activate-environment: true
- uses: nikeee/setup-pandoc@v1
- name: "Upgrade pip"
run: pip install --upgrade pip
- name: "Install jupyterbook"
run: pip install -r docs/requirements.txt
- name: "Install autoemulate"
run: pip install -e .
- name: "Install autoemulate with extras: dev, docs"
run: uv pip install -e .[dev,docs]
- name: "Run jupyterbook"
run: jupyter-book build docs --all
- name: "Deploy"
Expand Down
17 changes: 10 additions & 7 deletions .github/workflows/precommit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,16 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
python-version: "3.12"
enable-cache: true
cache-suffix: precommit
activate-environment: true
- name: Install dependencies
run: |
python -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip
pip install -e .[dev,spatiotemporal]
uv pip install -e .[dev,spatiotemporal]

- uses: pre-commit/[email protected]
with:
extra_args: --hook-stage manual --all-files
- name: Run pre-commit
run: uv run pre-commit run --hook-stage manual --all-files
15 changes: 11 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,24 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.10'

- name: Install uv
uses: astral-sh/setup-uv@v7
with:
python-version: '3.10'
enable-cache: true
cache-suffix: release
activate-environment: true

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build twine
uv pip install build twine

- name: Build package
run: python -m build
Expand Down
4 changes: 0 additions & 4 deletions docs/requirements.txt

This file was deleted.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ dev = [
"sphinx-autodoc-typehints>=1.24.0",
"black>=23.10.1",
"pre-commit>=3.5.0",
"jupyter-book>=1.0.0",
"jupyter-book>=1.0.0,<2.0.0",
"pytest-cov>=4.1.0",
"coverage>=7.6.4",
"plotnine>=0.13.6",
Expand Down