Skip to content

Commit f9f02a3

Browse files
committed
[JTH] little changes in tests and package for cloud consistency tests
1 parent 0171f84 commit f9f02a3

File tree

4 files changed

+57
-56
lines changed

4 files changed

+57
-56
lines changed

.github/workflows/build-docs.yml

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -13,27 +13,27 @@ jobs:
1313
runs-on: ubuntu-latest
1414

1515
steps:
16-
- name: Checkout Repository
17-
uses: actions/checkout@v4
18-
19-
- name: Set Up Python
20-
uses: actions/setup-python@v5
21-
with:
22-
python-version: "3.12"
23-
24-
- name: Install dependencies
25-
run: |
26-
pip install bluemath-tk[docs]
27-
28-
- name: Sphinx build
29-
run: |
30-
sphinx-apidoc -o docs/source/ bluemath_tk/
31-
sphinx-build docs/source/ docs/build/
32-
33-
- name: Deploy to GitHub Pages
34-
uses: peaceiris/actions-gh-pages@v3
35-
with:
36-
publish_branch: gh-pages
37-
github_token: ${{ secrets.GITHUB_TOKEN }}
38-
publish_dir: docs/build/
39-
force_orphan: true
16+
- name: Checkout Repository
17+
uses: actions/checkout@v4
18+
19+
- name: Set Up Python
20+
uses: actions/setup-python@v5
21+
with:
22+
python-version: "3.12"
23+
24+
- name: Install dependencies
25+
run: |
26+
pip install bluemath-tk[docs]
27+
28+
- name: Sphinx build
29+
run: |
30+
sphinx-apidoc -o docs/source/ bluemath_tk/
31+
sphinx-build docs/source/ docs/build/
32+
33+
- name: Deploy to GitHub Pages
34+
uses: peaceiris/actions-gh-pages@v3
35+
with:
36+
publish_branch: gh-pages
37+
github_token: ${{ secrets.GITHUB_TOKEN }}
38+
publish_dir: docs/build/
39+
force_orphan: true

.github/workflows/build-package.yml

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -10,31 +10,31 @@ jobs:
1010
runs-on: ubuntu-latest
1111

1212
steps:
13-
- name: Checkout Repository
14-
uses: actions/checkout@v4
15-
16-
- name: Set Up Python
17-
uses: actions/setup-python@v5
18-
with:
19-
python-version: "3.12"
20-
21-
- name: Install Dependencies
22-
run: |
23-
pip install build setuptools-scm twine
24-
conda install -c conda-forge conda-build anaconda-client
25-
26-
- name: Get Version
27-
id: get_version
28-
run: |
29-
echo "version=$(python -c 'import setuptools_scm; print(setuptools_scm.get_version())')" >> $GITHUB_ENV
30-
env:
31-
GITHUB_ENV: ${{ github.env }}
32-
33-
- name: Build Python Package
34-
run: python -m build
35-
36-
- name: Publish to PyPI
37-
run: python -m twine upload dist/* --verbose
38-
env:
39-
TWINE_USERNAME: __token__
40-
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
13+
- name: Checkout Repository
14+
uses: actions/checkout@v4
15+
16+
- name: Set Up Python
17+
uses: actions/setup-python@v5
18+
with:
19+
python-version: "3.13"
20+
21+
- name: Install Dependencies
22+
run: |
23+
pip install build setuptools-scm twine
24+
conda install -c conda-forge conda-build anaconda-client
25+
26+
- name: Get Version
27+
id: get_version
28+
run: |
29+
echo "version=$(python -c 'import setuptools_scm; print(setuptools_scm.get_version())')" >> $GITHUB_ENV
30+
env:
31+
GITHUB_ENV: ${{ github.env }}
32+
33+
- name: Build Python Package
34+
run: python -m build
35+
36+
- name: Publish to PyPI
37+
run: python -m twine upload dist/* --verbose
38+
env:
39+
TWINE_USERNAME: __token__
40+
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}

.github/workflows/python-tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ on:
1111
jobs:
1212
python-tests:
1313
runs-on: ${{ matrix.os }}
14-
14+
1515
strategy:
1616
matrix:
1717
os: [ubuntu-latest]
18-
python-version: ["3.11", "3.12", "3.13"]
18+
python-version: ["3.11", "3.12", "3.13", "3.14"]
1919
fail-fast: false
2020

2121
steps:
@@ -26,7 +26,7 @@ jobs:
2626
uses: conda-incubator/setup-miniconda@v2
2727
with:
2828
auto-update-conda: true
29-
29+
3030
- name: Create conda environment
3131
run: conda create -n bluemath-tk python=${{ matrix.python-version }}
3232

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ classifiers = [
2424
"Programming Language :: Python :: 3.11",
2525
"Programming Language :: Python :: 3.12",
2626
"Programming Language :: Python :: 3.13",
27+
"Programming Language :: Python :: 3.14",
2728
]
2829
dependencies = [
2930
"requests",
@@ -37,7 +38,6 @@ dependencies = [
3738
"scipy",
3839
"scikit-learn",
3940
"matplotlib",
40-
"plotly",
4141
"cartopy",
4242
"jinja2",
4343
"aiohttp",
@@ -58,6 +58,7 @@ docs = ["sphinx", "sphinx-rtd-theme", "jupyter-sphinx", "myst-parser"]
5858
waves = ["wavespectra", "olas"]
5959
num-models = ["hydromt-sfincs"]
6060
deep = ["tensorflow", "keras"]
61+
stats = ["numba"]
6162

6263
[project.urls]
6364

0 commit comments

Comments
 (0)