Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
585 commits
Select commit Hold shift + click to select a range
26dd876
convert jinja path to a string
mcflugen Nov 26, 2024
7d910df
add news fragment
mcflugen Nov 27, 2024
e30fbcd
Merge pull request #2051 from landlab/mcflugen/fix-jinja-path-error
mcflugen Nov 27, 2024
6dc7b84
remove toctree for components and grids
mcflugen Nov 26, 2024
c7b1b1d
remove toctree, link to development practices
mcflugen Nov 26, 2024
a934d94
use full path to grids
mcflugen Nov 26, 2024
0ebdc12
add news fragment
mcflugen Nov 27, 2024
1f7ea12
Merge pull request #2048 from landlab/mcflugen/remove-unnecessary-toc…
mcflugen Nov 27, 2024
6d41ab6
remove landlab prefix from the autosummary directives
mcflugen Nov 26, 2024
c062624
remove current module from autosummary in docstrings
mcflugen Nov 27, 2024
e261d06
add news fragment
mcflugen Nov 27, 2024
d6d5a34
Merge pull request #2052 from landlab/mcflugen/remove-current-module-…
mcflugen Nov 27, 2024
0668582
bump furo to 2024.8.6
mcflugen Nov 26, 2024
c683770
bump ipython to 8.29.0
mcflugen Nov 26, 2024
5a67e20
bump myst-parser to 4.0.0
mcflugen Nov 26, 2024
cc2764b
remove pandoc requirement for docs
mcflugen Nov 26, 2024
76a5fd4
bump numpy to 2.1.3 for docs
mcflugen Nov 26, 2024
69d7e56
remove tomli as a requirement
mcflugen Nov 26, 2024
3f6e905
use tomllib instead of tomli
mcflugen Nov 26, 2024
9a4dd25
bumps sphinx to 8.1.3
mcflugen Nov 27, 2024
0a943fe
Merge pull request #2047 from landlab/mcflugen/update-for-sphinx-8
mcflugen Nov 27, 2024
5e2566d
Adds river flow dynamics
angelmons Oct 17, 2023
afc373f
Run all tests and nox
angelmons Sep 4, 2024
f08d791
Update river_flow_dynamics.py
angelmons Sep 4, 2024
084d721
Update river_flow_dynamics.py
angelmons Sep 4, 2024
099615a
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Sep 4, 2024
31969b5
Create 1978.component.rst
angelmons Sep 4, 2024
6a75796
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Sep 4, 2024
deef803
Solves test compatibility issues
angelmons Sep 4, 2024
780dd7a
Solves a new capability issue
angelmons Sep 4, 2024
ecfbba3
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Sep 4, 2024
ca60656
Solves a new compability issue
angelmons Sep 4, 2024
2f1ff14
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Sep 4, 2024
2577b68
Corrects typos and rename 1978 to 1979.rst
angelmons Sep 4, 2024
ec8debd
Update river_flow_dynamics.py
angelmons Sep 5, 2024
462429e
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Sep 5, 2024
52a7936
Creates paper.md and paper.bib files - updates test
angelmons Sep 6, 2024
6394a9d
Update paper.md
angelmons Sep 6, 2024
a78e936
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Sep 6, 2024
d99398a
move river_flow_dynamics into src
mcflugen Oct 18, 2024
fa44303
remove notebook header, fix typo
mcflugen Oct 18, 2024
40e1ad5
use new esri_ascii.load function
mcflugen Oct 18, 2024
7f09d85
more descriptive variable names
mcflugen Oct 18, 2024
c153404
use grid.add_field
mcflugen Oct 18, 2024
76c0a58
use grid.imshow
mcflugen Oct 18, 2024
09e68b4
use tqdm for progress bar
mcflugen Oct 18, 2024
2bdc719
clean up plotting within loops
mcflugen Oct 18, 2024
748cf48
tidy array/field creation in __init__
mcflugen Oct 18, 2024
0371cff
simplify setting elevation/velocity at N_1, N_2
mcflugen Oct 18, 2024
cb8ff2d
nodes_at_left|right|top|bottom_edge don't need to be class attributes
mcflugen Oct 18, 2024
9d3ac24
change triple quoted strings to comments
mcflugen Oct 18, 2024
5207781
nx and ny don't need to be class attributes
mcflugen Oct 18, 2024
4486b92
dx and dy don't need to be class attributes
mcflugen Oct 18, 2024
4159ee1
remove unnecessary class attributes for grid elements
mcflugen Oct 18, 2024
f50990c
tidy fixed_nodes|links_exist
mcflugen Oct 18, 2024
aefd5c6
Update tests and rename using CamelCase
angelmons Nov 11, 2024
f4d9ef6
Edits required by lint
angelmons Nov 11, 2024
96827dc
fix links to teaching and tutorial notebooks
mcflugen Nov 12, 2024
53ea8cf
Merge pull request #1979 from angelmons/riverFlowDynamics_dev
mcflugen Dec 4, 2024
a1ea5c5
adjust pre-commit hook to ensure lf line endings
mcflugen Dec 16, 2024
e902dc2
set line endings to lf for landlab components
mcflugen Dec 16, 2024
a61814b
set line endings to lf for mass wasting runout data files
mcflugen Dec 16, 2024
95ea749
set line endings to lf for tutorial data files
mcflugen Dec 16, 2024
3cc0d6f
set line endings to lf for sediment pulser tests
mcflugen Dec 16, 2024
be48551
set line endings to lf for data files in the tests
mcflugen Dec 16, 2024
c6c3163
add news fragment
mcflugen Dec 16, 2024
5c0ce78
Merge pull request #2083 from landlab/mcflugen/fix-line-endings-to-lf
mcflugen Dec 16, 2024
7f73afa
Merge branch 'master' into loroberge/add-component-concentration-trac…
loroberge Dec 17, 2024
e8bbe2c
Updating kinwaveimplicitoverlandflow to accept fields for runoff and …
adalvis Dec 20, 2024
6636f9d
Merge branch 'master' of https://github.com/amanaster2/landlab into A…
adalvis Dec 23, 2024
d4abf22
Reformatted using Black
adalvis Dec 30, 2024
c916249
Added tests for accepting a float vs. array of floats for runoff_rate…
adalvis Dec 30, 2024
ae6e639
Merge branch 'ADA_dev' of https://github.com/amanaster2/landlab into …
adalvis Dec 30, 2024
1a2c6c3
lint fixes!
adalvis Dec 30, 2024
a18090a
move nst paper into published folder
mcflugen Jan 2, 2025
a65584f
Merge pull request #2099 from landlab/mcflugen/move-nst-paper-to-publ…
mcflugen Jan 3, 2025
1e0dae3
Added news fragment file for update
adalvis Jan 3, 2025
e6f4629
lint fixes
adalvis Jan 3, 2025
0257494
streamlining code, minor documentation updates, lint fixes, added get…
adalvis Jan 3, 2025
1d449a4
added extra block to test normal arrays for runoff_rate and roughness…
adalvis Jan 3, 2025
f2b60c0
Merge branch 'master' into ADA_dev
adalvis Jan 3, 2025
e00ebb6
fix isinstance call
mcflugen Jan 3, 2025
d8b5134
removing the np that I (apparently) desperately wanted to include
adalvis Jan 3, 2025
f192f44
Merge branch 'ADA_dev' of https://github.com/amanaster2/landlab into …
adalvis Jan 3, 2025
29a69a4
updating docstring for clarity
adalvis Jan 4, 2025
aa0f8bf
fix wrapped lines in doctest
mcflugen Jan 6, 2025
3d40a72
fix doctest formatting for black
mcflugen Jan 6, 2025
5c5ddc7
Merge branch 'master' into loroberge/add-component-concentration-trac…
mcflugen Jan 6, 2025
ec77a03
Streamlined code s.t. keywords roughness and runoff_rate accept only …
adalvis Jan 7, 2025
0e51c42
Updated tests to reflect changes made to keywords in the component; l…
adalvis Jan 7, 2025
4c7345a
Updated news fragment to reflect changes made to KinwaveImplicitOverl…
adalvis Jan 7, 2025
274172d
fixed a ValueError messaged; updated array storage for runoff_rate an…
adalvis Jan 8, 2025
5951217
updated names of tests for array_like keywords
adalvis Jan 8, 2025
6b6e372
Add new landlab references for Jan 2025 (#2104)
mcflugen Jan 8, 2025
bb795eb
fixing potential array modification issues
adalvis Jan 10, 2025
c722d96
updload pages artifact and deploy
mcflugen Oct 16, 2024
6618621
add banner for readthedocs
mcflugen Oct 17, 2024
f3c51ac
remove banner for main documentation
mcflugen Oct 17, 2024
d44d808
deploy docs only if on master branch
mcflugen Jan 16, 2025
6eb1c99
Merge pull request #2022 from landlab/mcflugen/deploy-docs-to-github-…
mcflugen Jan 16, 2025
b897366
git ls-files -z -- '*' | xargs -0 sed -i s/landlab.readthedocs.io/lan…
mcflugen Jan 28, 2025
a09b7f8
add news fragment
mcflugen Jan 28, 2025
bfdaea6
Merge pull request #2117 from landlab/all-repos_autofix_all-repos-sed
mcflugen Jan 28, 2025
203d878
Merge branch 'master' into ADA_dev
adalvis Jan 29, 2025
ca61a4f
bump pre-commit hooks to their latest versions
mcflugen Jan 30, 2025
484450a
remove some new docstring lint
mcflugen Jan 30, 2025
d25d062
remove unnecessary parens
mcflugen Jan 30, 2025
fde8e0a
Merge pull request #2119 from landlab/mcflugen/update-pre-commit-hooks
mcflugen Jan 30, 2025
5d86c43
update link to towncrier in the changelog
mcflugen Jan 28, 2025
d1b33df
update links in the pull request template
mcflugen Jan 28, 2025
09c5921
fix link to anaconda in the installation instructions
mcflugen Jan 28, 2025
8527fbf
fix links in the published joss articles
mcflugen Jan 28, 2025
411b0db
fix links in the landlab component readme files
mcflugen Jan 28, 2025
9c0f8c0
fix links the the readme and contributing files
mcflugen Jan 28, 2025
2defd3f
replace nbview links to links to the notebook gallery
mcflugen Jan 28, 2025
22b995a
fix link to docs in package init file
mcflugen Jan 29, 2025
0e537a0
fix path to notebooks for the gallery prolog
mcflugen Jan 30, 2025
ee69bde
set the docs version to master
mcflugen Jan 30, 2025
105ee74
ignore checking all doi links
mcflugen Jan 30, 2025
6738f6e
remove links to paywalled papers
mcflugen Jan 30, 2025
1d43675
fix links in the notebooks
mcflugen Jan 30, 2025
2b150d3
remove redundant index.html from links
mcflugen Jan 30, 2025
c8b7e0c
add news fragment
mcflugen Jan 30, 2025
1edc00b
Merge pull request #2118 from landlab/mcflugen/fix-bad-links
mcflugen Jan 30, 2025
e9bbf70
add docs-check-links session to noxfile
mcflugen Jan 30, 2025
25e4e8f
allow 403 errors when checking links
mcflugen Jan 30, 2025
badb2fa
add check-links job to test workflow
mcflugen Jan 30, 2025
e12b10f
remove linkcheck_ignore entries
mcflugen Jan 31, 2025
ebc3de5
add news fragment
mcflugen Jan 31, 2025
75867f0
Merge pull request #2121 from landlab/mcflugen/add-workflow-job-to-ch…
mcflugen Feb 1, 2025
2b2b1e5
setup setup-python action for docs
mcflugen Jan 31, 2025
77a1d0f
install docs requirement within the session environment
mcflugen Jan 31, 2025
36e4233
add news fragment
mcflugen Feb 1, 2025
6a8006f
Merge pull request #2122 from landlab/mcflugen/use-setup-python-actio…
mcflugen Feb 1, 2025
6be78bb
Merge branch 'landlab:master' into loroberge/add-component-concentrat…
loroberge Feb 4, 2025
1597945
Update cell area calculation to work on non-raster grids.
loroberge Feb 5, 2025
ffb6ee7
Merge branch 'loroberge/add-component-concentration-tracker-for-space…
loroberge Feb 5, 2025
d1419e9
Update cell area calculation to work on non-raster grids.
loroberge Feb 5, 2025
62c4bb5
Fix bug in area calculation.
loroberge Feb 5, 2025
6bc24dc
Merge pull request #2021 from loroberge/loroberge/add-component-conce…
mcflugen Feb 6, 2025
d17d3be
build session returns path to wheelhouse
mcflugen Feb 11, 2025
6e46afa
add install session to noxfile
mcflugen Feb 11, 2025
6ce941a
refactor test session to use install session
mcflugen Feb 11, 2025
457611f
refactor the test-notebooks session to use install session
mcflugen Feb 11, 2025
cb911e3
refactor the test-cli session to use install session
mcflugen Feb 11, 2025
9d82e77
use PYTEST_ADDOPTS environment var
mcflugen Feb 11, 2025
e8d842e
pass path to wheelhouse directly to nox, remove --path
mcflugen Feb 11, 2025
8f16bbc
install richdem with conda before running tests
mcflugen Feb 11, 2025
73f9965
Merge branch 'master' into ADA_dev
adalvis Feb 11, 2025
493e674
remove pop_option function
mcflugen Feb 12, 2025
64e5242
Merge pull request #2130 from landlab/mcflugen/clean-up-noxfile
mcflugen Feb 12, 2025
8a70d87
remove coveralls, pytest-cov as requirement; add coverage
mcflugen Feb 13, 2025
a7d0d2a
run test tests with the coverage command
mcflugen Feb 13, 2025
27fe568
remove coveralls steps, add codecov
mcflugen Feb 13, 2025
245d8a2
add news fragment
mcflugen Feb 13, 2025
92b6f92
Merge pull request #2133 from mcflugen/mcflugen/setup-codecov
mcflugen Feb 13, 2025
81b27a6
remove pytest-benchmark from requirements
mcflugen Dec 18, 2024
856ca75
remove benchmarks from flexure
mcflugen Dec 18, 2024
b8a329a
remove benchmarks from data_record
mcflugen Dec 18, 2024
a850c3a
remove benchmarks from graph quantities
mcflugen Dec 18, 2024
782c5ea
remove benchmarks from structured quad graph
mcflugen Dec 18, 2024
eeaa55a
remove benchmarks from raster divergence
mcflugen Dec 18, 2024
013356c
remove benchmarks from raster gradients
mcflugen Dec 18, 2024
8915e0a
set max hypothesis examples to 10 when on ci
mcflugen Dec 19, 2024
d353e2e
add test for counting up/downstream with one segment
mcflugen Feb 13, 2025
e22956f
set minimum number of segments to two
mcflugen Feb 13, 2025
4d2375a
add assert statements to check that array values are increasing
mcflugen Feb 13, 2025
796ca06
add news fragment
mcflugen Feb 13, 2025
1127848
Merge pull request #2087 from landlab/mcflugen/remove-benchmarks
mcflugen Feb 13, 2025
441587b
add landlab and tests folder to coverage
mcflugen Feb 13, 2025
57162d0
Merge pull request #2134 from landlab/mcflugen/add-src-to-codecov
mcflugen Feb 13, 2025
ac0ee0e
Merge remote-tracking branch 'origin/master' into ADA_dev
mcflugen Feb 13, 2025
d5132af
use setters when instantiating the component
mcflugen Feb 13, 2025
1c498b8
convert runoff_rate/roughness values to arrays at start of setter
mcflugen Feb 13, 2025
66b5b4e
remove if __main__ block
mcflugen Feb 13, 2025
6f3e00b
add a test for zero runoff_rate
mcflugen Feb 13, 2025
b774109
add test for negative runoff_rate and roughness
mcflugen Feb 13, 2025
79059c9
add test for runoff_rate and roughness setters
mcflugen Feb 13, 2025
8151849
add test for runoff_rate and roughness getter is read-only
mcflugen Feb 13, 2025
e07516b
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 13, 2025
686ab55
add a pytest richdem marker
mcflugen Feb 10, 2025
b6f9ecf
add richdem label to tests that use richdem
mcflugen Feb 10, 2025
6dcd6c1
add richdem pytest label to notebooks that use richdem
mcflugen Feb 10, 2025
a9453d4
add a test-richdem job to run richdem tests with conda
mcflugen Feb 10, 2025
5543152
add a test-richdem session to the nox file
mcflugen Feb 10, 2025
f4d2aca
install test-richdem requirements with pip
mcflugen Feb 10, 2025
6562d6a
just test the notebooks with richdem
mcflugen Feb 10, 2025
3c1febf
add the tests folder to test-richdem
mcflugen Feb 10, 2025
05921fe
test richdem on all pythons and operating systems
mcflugen Feb 10, 2025
267a139
test richdem with python 3.10, 3.11, 3.12
mcflugen Feb 11, 2025
8e1e890
do not run richdem tests
mcflugen Feb 10, 2025
e95d1e5
don't install richdem for the test and test-notebooks sessions
mcflugen Feb 11, 2025
f1b4862
clean up the test-richdem session
mcflugen Feb 14, 2025
cdc1c27
use setup-python for non-richdem tests
mcflugen Feb 14, 2025
8861a2b
remove conda backend from test, test-notebooks, and build sessions
mcflugen Feb 14, 2025
0ad8518
bump netcdf4 to 1.7.2
mcflugen Feb 7, 2025
1d419b0
bump required versions of dependencies
mcflugen Feb 7, 2025
73b990d
run coverage for the test-richdem session
mcflugen Feb 14, 2025
dfec965
report coverage after running richdem tests
mcflugen Feb 14, 2025
2b32833
upload coverage to codecov for test-richdem job
mcflugen Feb 14, 2025
73dc14d
set a default PYTEST_ADDOPTS to ignore richdem tests
mcflugen Feb 14, 2025
af0ade4
add news fragment
mcflugen Feb 14, 2025
b01095b
Merge pull request #2129 from landlab/mcflugen/run-richdem-tests-sepa…
mcflugen Feb 14, 2025
e95f32b
add aarch64 runners to the builds
mcflugen Feb 3, 2025
4340675
add aarch64 to the tests
mcflugen Feb 3, 2025
119c29c
remove the aarc64 job
mcflugen Feb 3, 2025
f0b7511
add macos-13 to list of tested operating systems
mcflugen Feb 3, 2025
ef07f5f
remove reference to build-aarch64
mcflugen Feb 3, 2025
3867b4a
use compact dicts for architectures in include matrix
mcflugen Feb 12, 2025
87c1437
update list-ci-matrix session for new architectures
mcflugen Feb 14, 2025
8f35746
add news fragment
mcflugen Feb 14, 2025
78ebdb7
Merge pull request #2132 from landlab/mcflugen/use-arm64-runners
mcflugen Feb 15, 2025
d52758b
add python 3.13, drop 3.10 for building/testing
mcflugen Oct 11, 2024
1f0701a
update docs for supported python versions
mcflugen Oct 11, 2024
9c27349
update classifiers for supported pythons
mcflugen Oct 11, 2024
79195a6
remove checks for python 2
mcflugen Oct 11, 2024
4dbb703
update pyupgrade pre-commit hook for py310
mcflugen Oct 11, 2024
42ff509
add news fragment
mcflugen Oct 11, 2024
3245c3a
bump jupyter to 1.1.1
mcflugen Nov 25, 2024
e967c2d
test notebooks with Python 3.12
mcflugen Nov 28, 2024
49ba303
test notebooks with python 3.13
mcflugen Dec 11, 2024
8d3b09e
build docs with python 3.13
mcflugen Dec 11, 2024
68e34c6
run test-richdem with python 3.13, drop 3.10
mcflugen Feb 16, 2025
50c0764
Merge pull request #2017 from landlab/mcflugen/python-313
mcflugen Feb 16, 2025
8cf4d63
add build-bdist action
mcflugen Feb 16, 2025
091d233
use build-bdist action in test workflow
mcflugen Feb 16, 2025
31c4577
Merge pull request #2138 from landlab/mcflugen/add-build-bdist-action
mcflugen Feb 17, 2025
8198e84
add new action to run the tests
mcflugen Feb 16, 2025
0cdfaab
run the tests with the run-tests action
mcflugen Feb 16, 2025
18f8291
add codecov-token to action inputs
mcflugen Feb 17, 2025
25c8102
pass the codecov-token to the run-tests action
mcflugen Feb 17, 2025
f6b1f98
Merge pull request #2137 from landlab/mcflugen/add-run-test-action
mcflugen Feb 17, 2025
1d48633
add a composite action that runs the notebooks using nox
mcflugen Feb 17, 2025
143a9e8
use the new run-notebooks action
mcflugen Feb 17, 2025
2eb1dac
Merge pull request #2139 from landlab/mcflugen/add-run-notebooks-action
mcflugen Feb 17, 2025
0e6b215
Merge branch 'master' of https://github.com/landlab/landlab into ADA_dev
adalvis Feb 26, 2025
97a93d8
Merge branch 'ADA_dev' of https://github.com/amanaster2/landlab into …
adalvis Feb 26, 2025
c9dec00
Merge pull request #2098 from amanaster2/ADA_dev
mcflugen Feb 27, 2025
0c94273
add missing triple ticks around bash commands
mcflugen Mar 11, 2025
7cdb3da
add news fragment
mcflugen Mar 11, 2025
9c5b6c1
Merge pull request #2155 from landlab/mcflugen/fix-typos-in-developer…
mcflugen Mar 11, 2025
2c049d8
correct dimensional error in calc of courant number
gregtucker Apr 7, 2025
960efa0
add news frag
gregtucker Apr 7, 2025
95beb2d
Merge pull request #2164 from landlab/mr-gt/fix-courant-in-ddtd
mcflugen Apr 8, 2025
9bd0955
update amanaster2 to adalvis
mcflugen Apr 8, 2025
bb76fde
Merge pull request #2165 from landlab/mcflugen/update-amanaster2-in-a…
mcflugen Apr 8, 2025
055db87
add mass balance check for overland flow
gantian127 Apr 14, 2025
2bd9add
refine mass balance unit test code
gantian127 Apr 21, 2025
6b286b7
add a change log
gantian127 Apr 21, 2025
3b99956
Merge pull request #2166 from landlab/tian_mass_balance_test
mcflugen Apr 21, 2025
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
4 changes: 2 additions & 2 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
folder.
-->

- [ ] Add a [news fragment](https://landlab.readthedocs.io/en/master/development/contribution/index.html#news-entries) file entry if necessary?
- [ ] Add a [news fragment](https://landlab.csdms.io/development/contribution/#news-entries) file entry if necessary?
- [ ] Add / update tests if necessary?
- [ ] Add new / update outdated documentation?
- [ ] All tests have passed?
Expand All @@ -42,7 +42,7 @@

Helpful links:

Developer guide: https://landlab.readthedocs.io/en/master/development
Developer guide: https://landlab.csdms.io/development/
Ask a question or submit an issue: https://github.com/landlab/landlab/issues
Landlab Slack channel: https://landlab.slack.com
-->
37 changes: 37 additions & 0 deletions .github/actions/build-bdist/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: "Build a binary distribution"
inputs:
cibw-only:
required: true
upload-name:
required: true
runs:
using: "composite"
steps:
- name: Python 3.12
uses: actions/setup-python@v5
with:
python-version: 3.12

- name: Print build identifiers
shell: bash -l {0}
run: |
python -m pip install cibuildwheel
python -m cibuildwheel --only ${{ inputs.cibw-only }} --print-build-identifiers

- name: Install openmp
if: runner.os == 'macOS'
shell: bash -l {0}
run: |
curl -O https://mac.r-project.org/openmp/openmp-13.0.0-darwin21-Release.tar.gz
sudo tar fvxz openmp-13.0.0-darwin21-Release.tar.gz -C /

- name: Build wheels
uses: pypa/cibuildwheel@v2.21.2
with:
only: ${{ inputs.cibw-only }}

- uses: actions/upload-artifact@v4
with:
name: ${{ inputs.upload-name }}
path: ${{ github.workspace }}/wheelhouse/*.whl
overwrite: true
56 changes: 56 additions & 0 deletions .github/actions/run-notebooks/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: "Run notebooks"
inputs:
python-version:
required: true
pytest-addopts:
required: false
default: ''
nox-session:
required: true
upload-name:
required: false
default: ''
runs:
using: "composite"
steps:
- uses: actions/checkout@v4
- name: Python ${{ inputs.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ inputs.python-version }}

- uses: actions/download-artifact@v4
name: Download build artifacts
with:
pattern: "build-*"
merge-multiple: true
path: ${{ github.workspace }}/dist

- name: Test
env:
OPENTOPOGRAPHY_API_KEY: ${{ inputs.opentopography_api_key }}
MPLBACKEND: "module://matplotlib_inline.backend_inline"
PYTEST_ADDOPTS: ${{ inputs.pytest-addopts }}
shell: bash -l {0}
run: |
pip install nox
nox --verbose -s ${{ inputs.nox-session }} \
--force-pythons=${{ inputs.python-version }} \
-- dist/

- name: Find executed notebooks
shell: bash -l {0}
run: |
for f in $(git diff --name-only); do
mkdir -p executed/$(dirname $f);
cp $f executed/$(dirname $f);
done
ls -R executed/

- name: Upload executed notebooks
if: ${{ inputs.upload-name != '' }}
uses: actions/upload-artifact@v4
with:
name: ${{ inputs.upload-name }}
path: executed/
overwrite: true
43 changes: 43 additions & 0 deletions .github/actions/run-tests/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: "Run tests"
inputs:
python-version:
required: true
pytest-addopts:
required: true
nox-session:
required: true
codedov-token:
required: true

runs:
using: "composite"
steps:
- uses: actions/checkout@v4
- name: Python ${{ inputs.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ inputs.python-version }}

- uses: actions/download-artifact@v4
name: Download build artifacts
with:
pattern: "build-*"
merge-multiple: true
path: ${{ github.workspace }}/dist

- name: Test
env:
HYPOTHESIS_PROFILE: "ci"
MPLBACKEND: "Agg"
PYTEST_ADDOPTS: ${{ inputs.pytest-addopts }}
shell: bash -l {0}
run: |
pip install nox
nox --verbose -s ${{ inputs.nox-session }} \
--force-pythons=${{ inputs.python-version }} \
-- dist/

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ inputs.codecov-token }}
2 changes: 1 addition & 1 deletion .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ jobs:
if: contains(github.event.pull_request.labels.*.name, 'skip news') != true
run: |
if ! pipx run towncrier check --compare-with origin/${{ github.base_ref }}; then
echo "Please see https://landlab.readthedocs.io/en/master/development/contribution/index.html?highlight=towncrier#news-entries for guidance."
echo "Please see https://landlab.csdms.io/en/master/development/contribution/index.html?highlight=towncrier#news-entries for guidance."
false
fi
Loading
Loading