Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pytest merge conflicts #6209

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
223 commits
Select commit Hold shift + click to select a range
f4e2fb7
RUFF: fix legacy use of np.numpy.random (#5786)
tkknight Feb 27, 2024
6bc9adb
DOCS: Enable numpydoc validation pre-commit hook (#5762)
tkknight Feb 27, 2024
8c4b00d
ASV custom build command and file-based benchmark triggers (#5776)
trexfeathers Feb 27, 2024
3b0ab40
DOCS: Add whatsnew for recent PRs (#5789)
tkknight Feb 27, 2024
8e3a54a
Bump scitools/workflows from 2024.02.1 to 2024.02.2 (#5792)
dependabot[bot] Feb 29, 2024
b5a754e
whatsnew update for 3.8.0 (#5793)
stephenworsley Feb 29, 2024
586c647
Lazy rolling_window (#5775)
bouweandela Mar 1, 2024
0ef0bc5
Merge remote-tracking branch 'upstream/v3.8.x' into trial_3v8_mergeback
pp-mo Mar 1, 2024
9ac39b7
Merge pull request #5794 from pp-mo/trial_3v8_mergeback
trexfeathers Mar 1, 2024
c6151e8
Fix usage of map_blocks in AreaWeighted and elsewhere (#5767)
stephenworsley Mar 1, 2024
897b7cb
Bump scitools/workflows from 2024.02.2 to 2024.03.0
dependabot[bot] Mar 12, 2024
23c7144
Merge pull request #5818 from SciTools/dependabot/github_actions/scit…
bjlittle Mar 12, 2024
cb66b70
Bump scitools/workflows from 2024.03.0 to 2024.03.1
dependabot[bot] Mar 13, 2024
a3df32f
Merge pull request #5826 from SciTools/dependabot/github_actions/scit…
bjlittle Mar 13, 2024
7a5ef80
Remove fill-value checks from netcdf saver.
pp-mo Mar 13, 2024
555e3a3
Remove warning checks.
pp-mo Mar 13, 2024
7de5471
Remove more fill-value warnings tests.
pp-mo Mar 13, 2024
e9b2e8b
Bump scitools/workflows from 2024.03.1 to 2024.03.3
dependabot[bot] Mar 14, 2024
9c431a0
Merge pull request #5835 from SciTools/dependabot/github_actions/scit…
bjlittle Mar 14, 2024
8b40ce3
Remove tests of removed features.
pp-mo Mar 14, 2024
ae61baf
What's New patch.
trexfeathers Mar 4, 2024
8215b43
What's New patch.
trexfeathers Mar 4, 2024
00b3d88
Make the bugfix panel OPEN.
trexfeathers Mar 4, 2024
df70eea
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Mar 18, 2024
ece9f03
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Mar 18, 2024
cbb0845
Merge pull request #5757 from SciTools/pre-commit-ci-update-config
bjlittle Mar 18, 2024
3b49086
Merge pull request #5857 from trexfeathers/v3.7.1.mergeback
bjlittle Mar 19, 2024
821cbb8
Merge pull request #5858 from trexfeathers/v3.8.1.mergeback
bjlittle Mar 19, 2024
b8d6ab1
Updated environment lockfiles
web-flow Mar 23, 2024
fca898d
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Mar 25, 2024
e90cce2
Merge pull request #5885 from SciTools/pre-commit-ci-update-config
bjlittle Mar 25, 2024
7c28258
Advertise structured_um_loading performance regression.
trexfeathers Mar 26, 2024
375da2d
Merge remote-tracking branch 'upstream/main' into lazystream_fix_5_no…
trexfeathers Mar 26, 2024
fb039ab
Merge pull request #5886 from trexfeathers/lockfile_fixes
bjlittle Mar 26, 2024
45104ac
Remove loose references to fill value warnings.
trexfeathers Mar 26, 2024
80de57a
Updated documentation.
trexfeathers Mar 26, 2024
a49fccb
Re-introduce backwards compatible warning.
trexfeathers Mar 26, 2024
5f1e265
Fix typo.
trexfeathers Mar 27, 2024
c85c7bc
Type hinting.
trexfeathers Mar 27, 2024
e0dd942
Merge branch 'lazystream_fix_5_nofvcheck' of github.com:pp-mo/iris in…
trexfeathers Mar 27, 2024
aa80493
Try Union for type hinting.
trexfeathers Mar 27, 2024
c5f57da
Iris to GeoVista conversion (#5740)
HGWright Mar 27, 2024
01efa4c
What's New entry for SciTools/iris#5740 .
trexfeathers Mar 27, 2024
f740506
Merge pull request #5890 from trexfeathers/whatsnew_5740
bjlittle Mar 28, 2024
72c7bd1
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Apr 1, 2024
45a3af1
Updated environment lockfiles (#5892)
scitools-ci[bot] Apr 2, 2024
39d40af
Merge branch 'main' into pre-commit-ci-update-config
bjlittle Apr 2, 2024
9a186b8
Improve typing readability.
trexfeathers Apr 2, 2024
e1ccdf0
Make typing 3.9 compatible.
trexfeathers Apr 2, 2024
64848ab
Merge pull request #5833 from pp-mo/lazystream_fix_5_nofvcheck
bjlittle Apr 2, 2024
84c3c84
Merge pull request #5893 from SciTools/pre-commit-ci-update-config
bjlittle Apr 2, 2024
03a2d5c
Force pytest colour output on GitHub Actions (#5895)
jfrost-mo Apr 2, 2024
b7685b9
Avoid computing lazy scalar coordinates when printing a Cube (v2) (#5…
pp-mo Apr 2, 2024
4296238
Support NetCDF v3 files in chunking control code. (#5897)
pp-mo Apr 3, 2024
c8a663a
nep29: drop py39 and support py312 (#5894)
bjlittle Apr 3, 2024
760225a
Whats new updates for `v3.9.0rc0` (#5899)
trexfeathers Apr 3, 2024
d2b2883
Merging release branch into main
trexfeathers Apr 3, 2024
7c313ff
Restore latest Whats New files.
trexfeathers Apr 3, 2024
3f36a37
Merge pull request #5900 from trexfeathers/v3.9.x.mergeback
pp-mo Apr 3, 2024
b1fb458
DOC: clarify save_pairs_from_cube docstring (#5783)
rcomer Apr 4, 2024
212ef56
Unpin sphinx (#5901)
tkknight Apr 4, 2024
f8ea86f
Add option to specify chunks in `iris.util.broadcast_to_shape` (#5620)
bouweandela Apr 5, 2024
600c47c
Implement lazy area weights (#5658)
schlunma Apr 8, 2024
79d1dd9
Ignore flaticon.com in linkchecks. (#5905)
trexfeathers Apr 8, 2024
1c7d9d2
Updated environment lockfiles (#5904)
scitools-ci[bot] Apr 8, 2024
2fdf584
[pre-commit.ci] pre-commit autoupdate (#5906)
pre-commit-ci[bot] Apr 8, 2024
e26bfaf
Bump scitools/workflows from 2024.03.3 to 2024.04.0 (#5907)
dependabot[bot] Apr 9, 2024
93eb949
Updated environment lockfiles (#5911)
scitools-ci[bot] Apr 15, 2024
4119046
Shapefile user guide typos (#5759)
acchamber Apr 15, 2024
61979a3
Revert "Updated environment lockfiles (#5911)" (#5912)
pp-mo Apr 15, 2024
85276e5
[pre-commit.ci] pre-commit autoupdate (#5913)
pre-commit-ci[bot] Apr 15, 2024
a09c277
Bump scitools/workflows from 2024.04.0 to 2024.04.1 (#5914)
dependabot[bot] Apr 16, 2024
6cc7c3d
Enhance Cube slicing docs (#5735)
hsteptoe Apr 16, 2024
7a32486
Bump scitools/workflows from 2024.04.1 to 2024.04.2 (#5916)
dependabot[bot] Apr 19, 2024
9fd153b
Whats new updates for v3.9.0 . (#5919)
trexfeathers Apr 22, 2024
6bdfb4d
Merge pull request #5921 from SciTools/v3.9.x
HGWright Apr 22, 2024
04e9cb0
[pre-commit.ci] pre-commit autoupdate (#5922)
pre-commit-ci[bot] Apr 22, 2024
bca82d9
Remove outdated workaround for data type issue with `da.stack` (#5923)
bouweandela Apr 25, 2024
fc7f832
Fix W605 error in test_coord_op_coord_fail. (#5925)
trexfeathers Apr 25, 2024
b33ccc1
Use the correct `chunktype` for Dask arrays (#5801)
bouweandela Apr 26, 2024
16f0cc4
Bump scitools/workflows from 2024.04.2 to 2024.04.3 (#5930)
dependabot[bot] Apr 29, 2024
e6f518a
FIX: weighted percentile works with 1D weights (#5825)
rcomer Apr 29, 2024
fe22039
Temporary fix for airspeed-velocity/asv#1396 (#5931)
trexfeathers Apr 29, 2024
8b41ca8
[pre-commit.ci] pre-commit autoupdate (#5932)
pre-commit-ci[bot] Apr 29, 2024
5c9640a
[pre-commit.ci] pre-commit autoupdate (#5938)
pre-commit-ci[bot] May 7, 2024
1d064e3
codecov-action gha with token (#5941)
bjlittle May 8, 2024
a56f939
Bump scitools/workflows from 2024.04.3 to 2024.05.0 (#5942)
dependabot[bot] May 9, 2024
c5e0353
Remove unit benchmarks (#5949)
trexfeathers May 13, 2024
25b685c
[pre-commit.ci] pre-commit autoupdate (#5952)
pre-commit-ci[bot] May 14, 2024
95b7ffe
Provide a Nox `benchmarks` session as the recommended entry point (#5…
trexfeathers May 15, 2024
3b6fa28
Use tracemalloc for memory measurements. (#5948)
pp-mo May 16, 2024
14bb05d
Added benchmarks for collapse and aggregate (#5954)
ESadek-MO May 16, 2024
c956403
Automatically install iris-test-data for benchmark data generation (#…
trexfeathers May 18, 2024
61eb74c
Add bm_runner 'trialrun' subcommand. (#5957)
pp-mo May 20, 2024
33ee784
Remove "on-demand" from some benchmarks (#5959)
pp-mo May 20, 2024
0909918
Whatsnew for several benchmark developments. (#5961)
pp-mo May 20, 2024
22c98e8
Add memory benchmarks (#5960)
stephenworsley May 21, 2024
3e1e80e
Lazy `iris.cube.Cube.rolling_window` (#5795)
bouweandela May 22, 2024
8407275
used a note to highlight some text (#5971)
tkknight May 22, 2024
46d2cf6
List 25 slowest tests (#5969)
bouweandela May 22, 2024
57096f2
Update lock files with associated fixes (#5953)
trexfeathers May 24, 2024
3986950
Updated environment lockfiles (#5979)
scitools-ci[bot] May 28, 2024
18ff0f8
Make `slices_over` tests go faster (#5973)
rcomer May 30, 2024
5c27847
Bump scitools/workflows from 2024.05.0 to 2024.05.1 (#5984)
dependabot[bot] Jun 3, 2024
b15a1f6
Updated environment lockfiles (#5983)
scitools-ci[bot] Jun 3, 2024
7566666
[pre-commit.ci] pre-commit autoupdate (#5980)
pre-commit-ci[bot] Jun 4, 2024
6adac1b
Bump scitools/workflows from 2024.05.1 to 2024.06.0 (#5986)
dependabot[bot] Jun 4, 2024
4cf1767
[pre-commit.ci] pre-commit autoupdate (#5997)
pre-commit-ci[bot] Jun 10, 2024
e92e36a
Bump scitools/workflows from 2024.06.0 to 2024.06.1 (#5998)
dependabot[bot] Jun 11, 2024
998a568
Added more descriptive errors within concatenate (#6005)
ESadek-MO Jun 14, 2024
d9c4c1d
Updated environment lockfiles (#5996)
scitools-ci[bot] Jun 17, 2024
e4fc012
[pre-commit.ci] pre-commit autoupdate (#6007)
pre-commit-ci[bot] Jun 18, 2024
167d149
Bump scitools/workflows from 2024.06.1 to 2024.06.2 (#6008)
dependabot[bot] Jun 18, 2024
d16628a
Fix array_equal behaviour for masked arrays (#4457)
stephenworsley Jun 19, 2024
70e843c
used tabs for the install info (#6013)
tkknight Jun 19, 2024
02511c3
Mesh saveload fix (#6004)
pp-mo Jun 20, 2024
e7c0343
Bump scitools/workflows from 2024.06.2 to 2024.06.3 (#6015)
dependabot[bot] Jun 20, 2024
be2bbe7
Add `MeshCoord.collapsed` (#6003)
trexfeathers Jun 21, 2024
0cdbdee
Updated environment lockfiles (#6020)
scitools-ci[bot] Jun 23, 2024
788b6f9
Bump scitools/workflows from 2024.06.3 to 2024.06.4 (#6018)
dependabot[bot] Jun 23, 2024
fe6cea3
[pre-commit.ci] pre-commit autoupdate (#6022)
pre-commit-ci[bot] Jun 25, 2024
1c063f3
Do not realize cell measures and ancillary variables in concatenate (…
bouweandela Jun 25, 2024
1bea71c
Bump scitools/workflows from 2024.06.4 to 2024.06.5 (#6026)
dependabot[bot] Jun 26, 2024
7d6a3f6
Enable type hint checking (#5956)
bouweandela Jun 26, 2024
1a73e84
Replace DelegatedConda with Delegated (#5963)
trexfeathers Jun 28, 2024
d0801aa
Adapt setup.py for pypa/setuptools@2db55275f. (#6036)
trexfeathers Jul 2, 2024
9d90530
NEP29 and NumPy v2 pins (#6039)
trexfeathers Jul 3, 2024
b857174
Update test_Saver__ugrid.py (#6017)
pp-mo Jul 4, 2024
d3ec617
Bump scitools/workflows from 2024.06.5 to 2024.07.0 (#6034)
dependabot[bot] Jul 5, 2024
2b2a86a
Bump scitools/workflows from 2024.07.0 to 2024.07.1 (#6045)
dependabot[bot] Jul 9, 2024
1115fa4
Shorten cube iterator tests (#6041)
bouweandela Jul 9, 2024
409f92c
Faster concatenation of cubes with `AuxCoordFactory`s (#6038)
bouweandela Jul 9, 2024
8604bb8
Bump scitools/workflows from 2024.07.1 to 2024.07.2 (#6053)
dependabot[bot] Jul 17, 2024
17dd34a
Allow MeshCoord to have a coord-system (#6016)
pp-mo Jul 17, 2024
c66703a
Quieter datum warning (#6050)
trexfeathers Jul 17, 2024
c06bf55
Bump scitools/workflows from 2024.07.2 to 2024.07.3 (#6063)
dependabot[bot] Jul 19, 2024
bd66de9
Rename `Mesh` to `MeshXY` (#6056)
trexfeathers Jul 19, 2024
c60afa8
Doctest compatibility with GeoVista v0.5. (#6064)
trexfeathers Jul 19, 2024
25b8752
add location argument to mesh.coords (#6055)
stephenworsley Jul 19, 2024
ee6f186
Pin matplotlib != 3.9.1 (#6065)
pp-mo Jul 19, 2024
38e5a23
Updated environment lockfiles (#6029)
scitools-ci[bot] Jul 19, 2024
7d26cc1
Bump scitools/workflows from 2024.07.3 to 2024.07.4 (#6071)
dependabot[bot] Jul 22, 2024
2d4eda0
Enable UGRID loading always; deprecate PARSE_UGRID_ON_LOAD. (#6054)
pp-mo Jul 22, 2024
304c5e0
Updated environment lockfiles (#6068)
scitools-ci[bot] Jul 22, 2024
c333b7f
Bump scitools/workflows from 2024.07.4 to 2024.07.5 (#6076)
dependabot[bot] Jul 23, 2024
7c87fb2
Mesh nonexperimental (#6061)
pp-mo Jul 25, 2024
4585059
Mesh nonexperimental extra (#6077)
pp-mo Jul 26, 2024
83905e9
Adding monthly and yearly arguments to `guess_bounds` (#6090)
HGWright Jul 26, 2024
48f1f4e
Load performance improvement (ignoring UGRID) (#6088)
stephenworsley Jul 29, 2024
db77e6e
Bump scitools/workflows from 2024.07.5 to 2024.07.6 (#6099)
dependabot[bot] Jul 30, 2024
133570c
Update cf_table v85 (#6100)
HGWright Jul 30, 2024
ff85847
Add mesh metas to the iris.common.metadata public API. (#6093)
pp-mo Jul 30, 2024
10e7f46
Whats new updates for v3.10.0rc0 . (#6101)
HGWright Jul 30, 2024
35d6611
Merging release branch into main
HGWright Jul 31, 2024
f8d1e13
Restore latest Whats New files.
HGWright Aug 1, 2024
5c18504
Merge pull request #6104 from HGWright/v3.10.x.mergeback
trexfeathers Aug 1, 2024
dd71740
Bump scitools/workflows from 2024.07.6 to 2024.08.0 (#6105)
dependabot[bot] Aug 6, 2024
8a15e4a
fix typo for class reference (#6106)
tkknight Aug 7, 2024
9c3f3a7
remove --force option as it is not present in conda (only mamba) (#6111)
tkknight Aug 11, 2024
ac3c914
Whats new updates for v3.10.0 . (#6112)
HGWright Aug 13, 2024
c88b407
Merge pull request #6113 from SciTools/v3.10.x
trexfeathers Aug 13, 2024
b8f554f
Bump scitools/workflows from 2024.08.0 to 2024.08.1 (#6116)
dependabot[bot] Aug 14, 2024
773c55b
Include ancillary variables and cell_measures during intersect (#5804)
ESadek-MO Aug 23, 2024
9a23aa0
Bump scitools/workflows from 2024.08.1 to 2024.08.3 (#6131)
dependabot[bot] Aug 27, 2024
1bfe311
Faster time coordinate categorization (#5999)
bouweandela Aug 30, 2024
5cc6737
Repeating Tracemalloc Benchmark for accuracy (#5981)
trexfeathers Aug 30, 2024
44257eb
Partial collapse of multi-dim string coords: take 2 (#5955)
rcomer Aug 30, 2024
13017e3
Bump scitools/workflows from 2024.08.3 to 2024.09.0 (#6136)
dependabot[bot] Sep 3, 2024
a045c81
Parallel concatenate (#5926)
bouweandela Sep 3, 2024
02928ce
Dependabot check weekly. (#6138)
trexfeathers Sep 3, 2024
1a9bdaa
Bump scitools/workflows from 2024.09.0 to 2024.09.1 (#6139)
dependabot[bot] Sep 3, 2024
fa8a416
Bump scitools/workflows from 2024.09.1 to 2024.09.2 (#6142)
dependabot[bot] Sep 5, 2024
de4843c
Proj ci fix WIP (#6135)
HGWright Sep 5, 2024
d76a4d8
Add format agent copy and equality methods (#6119)
jrackham-mo Sep 11, 2024
4c73724
Bump scitools/workflows from 2024.09.2 to 2024.09.4 (#6145)
dependabot[bot] Sep 12, 2024
2acfd92
Updated environment lockfiles (#6146)
scitools-ci[bot] Sep 16, 2024
9ee671c
Add type hints to `iris.cube.Cube` (#6037)
bouweandela Sep 16, 2024
e1f5a8b
Bump scitools/workflows from 2024.09.4 to 2024.09.6 (#6148)
dependabot[bot] Sep 19, 2024
38a8ab9
Bump scitools/workflows from 2024.09.6 to 2024.09.8 (#6151)
dependabot[bot] Sep 26, 2024
aed6253
Bump build to fix lockfile PR (#6152)
HGWright Sep 27, 2024
0d731cb
add dask pin (#6153)
HGWright Sep 27, 2024
0ce2550
configure dependabot for github composite actions (#6154)
bjlittle Sep 30, 2024
2fabfff
Bump actions/cache in /.github/workflows/composite/cartopy-cache (#6155)
dependabot[bot] Sep 30, 2024
64eef7b
Bump actions/cache in /.github/workflows/composite/iris-data-cache (#…
dependabot[bot] Sep 30, 2024
e81c208
Bump actions/cache in /.github/workflows/composite/conda-pkg-cache (#…
dependabot[bot] Sep 30, 2024
2406159
Bump actions/cache from 3 to 4 in /.github/workflows/composite/nox-ca…
dependabot[bot] Sep 30, 2024
2609afb
Bump actions/cache in /.github/workflows/composite/conda-env-cache (#…
dependabot[bot] Sep 30, 2024
a01a8c4
Bump scitools/workflows from 2024.09.8 to 2024.09.9 (#6160)
dependabot[bot] Oct 3, 2024
aa299f2
Fix pre-commit non-compliances (#6161)
trexfeathers Oct 3, 2024
d835df8
Updated environment lockfiles (#6164)
scitools-ci[bot] Oct 7, 2024
cc60a60
[pre-commit.ci] pre-commit autoupdate (#6166)
pre-commit-ci[bot] Oct 7, 2024
d2fc1db
Update lock files, pin Cartopy!=0.23 (#6171)
trexfeathers Oct 11, 2024
ef2bf01
Bump scitools/workflows from 2024.09.9 to 2024.10.0 (#6170)
dependabot[bot] Oct 11, 2024
e8c826a
Updated environment lockfiles (#6173)
scitools-ci[bot] Oct 14, 2024
54f430b
Make Iris backwards compatible with Cartopy (#6172)
trexfeathers Oct 14, 2024
d11ff3a
`colorbar` keyword for iris.quickplot routines (#6169)
ukmo-ccbunney Oct 16, 2024
d3071ff
Bump scitools/workflows from 2024.10.0 to 2024.10.1 (#6179)
dependabot[bot] Oct 17, 2024
3b8b33c
Update to `cell_method` parsing (#6083)
ukmo-ccbunney Oct 18, 2024
cb47540
Updated environment lockfiles (#6183)
scitools-ci[bot] Oct 19, 2024
b15e3e2
[pre-commit.ci] pre-commit autoupdate (#6175)
pre-commit-ci[bot] Oct 21, 2024
3114912
Updated environment lockfiles (#6184)
scitools-ci[bot] Oct 23, 2024
e892fd1
Document use of new_axis to control merge (#6180)
stephenworsley Oct 23, 2024
dd0432e
Bump scitools/workflows from 2024.10.1 to 2024.10.2 (#6186)
dependabot[bot] Oct 24, 2024
b5bdaff
Demo Numpy v2 (#6035)
trexfeathers Oct 24, 2024
8c213f0
Improve handling of masks in concatenate (#6187)
bouweandela Oct 25, 2024
b9a950a
Enable factory references to create new dimensions on load. (#6168) (…
stephenworsley Oct 25, 2024
f58f050
Fix attribute array comparison (#6181)
ukmo-ccbunney Oct 25, 2024
bd6f306
Reduce duplication in cf.py spanning checks. (#6196)
trexfeathers Oct 25, 2024
8fe2b1f
Updated environment lockfiles (#6197)
scitools-ci[bot] Oct 28, 2024
9c29117
added in a vertical rule for surface fields (#5734)
ESadek-MO Oct 28, 2024
14d9714
Specify meta in dask.array.map_blocks (#5989)
bouweandela Oct 28, 2024
8753cfb
Update CF standard names table. (#6200)
ESadek-MO Oct 28, 2024
1122535
What's new updates for v3.11.0rc0 . (#6201)
ESadek-MO Oct 28, 2024
4175dda
correct major minor in whatsnew (#6202)
ESadek-MO Oct 28, 2024
466fa4d
Merging release branch into main
ESadek-MO Oct 29, 2024
dd29017
[pre-commit.ci] pre-commit autoupdate (#6205)
pre-commit-ci[bot] Oct 30, 2024
95594b2
Restore latest Whats New files.
ESadek-MO Oct 30, 2024
9dc3e40
Merge branch 'main' into v3.11.x.mergeback
ESadek-MO Oct 30, 2024
61e04b9
Merge pull request #6206 from ESadek-MO/v3.11.x.mergeback
HGWright Oct 30, 2024
21005f3
Merge remote-tracking branch 'upstream/main' into pytest_merge_conflicts
HGWright Oct 31, 2024
50d1c37
regen lockfiles
HGWright Oct 31, 2024
20bb1e3
precommit fixes
HGWright Oct 31, 2024
40e9a36
fix some test failures
HGWright Oct 31, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
13 changes: 9 additions & 4 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,15 @@ version: 2
updates:

- package-ecosystem: "github-actions"
directory: "/"
directories:
- "/"
- "/.github/workflows/composite/*"
schedule:
# Check for updates to GitHub Actions every weekday
interval: "daily"
# Check later in the week - the upstream dependabot check in `workflows` runs deliberately early in the week.
# Therefore allowing time for the `workflows` update to be merged-and-released first.
interval: "weekly"
day: "thursday"
time: "01:00"
timezone: "Europe/London"
labels:
- "New: Pull Request"
- "Bot"
11 changes: 7 additions & 4 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Make sure any dependency changes are benchmarked (only changes to the locks
# make a material difference - changes to the Conda YAML files are not
# benchmarked).
# benchmark_this automatically triggers the benchmark workflow when added by
# a user. No triggering happens when GitHub Actions adds the label (this
# avoids security vulnerabilities), so alternative triggers for the below
# files are therefore included in workflows/benchmarks_run.yml. Automatic
# labelling is still included here to make it easier to search pull requests,
# and to reinforce the culture of using this label.
benchmark_this:
- changed-files:
- any-glob-to-any-file: 'requirements/locks/*.lock'
- any-glob-to-any-file: ['requirements/locks/*.lock', "setup.py"]
5 changes: 5 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,8 @@

---
[Consult Iris pull request check list]( https://scitools-iris.readthedocs.io/en/latest/developers_guide/contributing_pull_request_checklist.html)

---
Add any of the below labels to trigger actions on this PR:

- https://github.com/SciTools/iris/labels/benchmark_this
55 changes: 43 additions & 12 deletions .github/workflows/benchmarks_run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,51 @@ on:
required: false
type: string
pull_request:
types: [labeled]
# Add the `labeled` type to the default list.
types: [labeled, opened, synchronize, reopened]

jobs:
pre-checks:
runs-on: ubuntu-latest
if: github.repository == 'SciTools/iris'
outputs:
overnight: ${{ steps.overnight.outputs.check }}
branch: ${{ steps.branch.outputs.check }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2
- id: files-changed
uses: marceloprado/has-changed-path@df1b7a3161b8fb9fd8c90403c66a9e66dfde50cb
with:
# SEE ALSO .github/labeler.yml .
paths: requirements/locks/*.lock setup.py
- id: overnight
if: github.event_name != 'pull_request'
run: echo "check=true" >> "$GITHUB_OUTPUT"
- id: branch
if: >
github.event_name == 'pull_request'
&&
(
steps.files-changed.outputs.changed == 'true'
||
github.event.label.name == 'benchmark_this'
)
run: echo "check=true" >> "$GITHUB_OUTPUT"


benchmark:
if: >
github.repository == 'SciTools/iris' &&
(github.event_name != 'pull_request' ||
github.event.label.name == 'benchmark_this')
runs-on: ubuntu-latest
needs: pre-checks
if: >
needs.pre-checks.outputs.overnight == 'true' ||
needs.pre-checks.outputs.branch == 'true'

env:
IRIS_TEST_DATA_LOC_PATH: benchmarks
IRIS_TEST_DATA_PATH: benchmarks/iris-test-data
IRIS_TEST_DATA_VERSION: "2.22"
IRIS_TEST_DATA_VERSION: "2.28"
# Lets us manually bump the cache to rebuild
ENV_CACHE_BUILD: "0"
TEST_DATA_CACHE_BUILD: "2"
Expand All @@ -40,9 +71,9 @@ jobs:
with:
fetch-depth: 0

- name: Install ASV & Nox
- name: Install Nox
run: |
pip install "asv!=0.6.2" nox
pip install nox

- name: Cache environment directories
id: cache-env-dir
Expand Down Expand Up @@ -76,16 +107,16 @@ jobs:
echo "OVERRIDE_TEST_DATA_REPOSITORY=${GITHUB_WORKSPACE}/${IRIS_TEST_DATA_PATH}/test_data" >> $GITHUB_ENV

- name: Benchmark this pull request
if: ${{ github.event.label.name == 'benchmark_this' }}
if: needs.pre-checks.outputs.branch == 'true'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR_NUMBER: ${{ github.event.number }}
run: |
python benchmarks/bm_runner.py branch origin/${{ github.base_ref }}
nox -s benchmarks -- branch origin/${{ github.base_ref }}

- name: Run overnight benchmarks
id: overnight
if: ${{ github.event_name != 'pull_request' }}
if: needs.pre-checks.outputs.overnight == 'true'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
Expand All @@ -97,7 +128,7 @@ jobs:

if [ "$first_commit" != "" ]
then
python benchmarks/bm_runner.py overnight $first_commit
nox -s benchmarks -- overnight $first_commit
fi

- name: Warn of failure
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ concurrency:
jobs:
manifest:
name: "check-manifest"
uses: scitools/workflows/.github/workflows/ci-manifest.yml@2024.02.1
uses: scitools/workflows/.github/workflows/ci-manifest.yml@2024.10.2
32 changes: 18 additions & 14 deletions .github/workflows/ci-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,22 +35,23 @@ jobs:
fail-fast: false
matrix:
os: ["ubuntu-latest"]
python-version: ["3.11"]
python-version: ["3.12"]
session: ["doctest", "gallery", "linkcheck"]
include:
- os: "ubuntu-latest"
python-version: "3.11"
python-version: "3.12"
session: "tests"
coverage: "--coverage"
- os: "ubuntu-latest"
python-version: "3.10"
python-version: "3.11"
session: "tests"
- os: "ubuntu-latest"
python-version: "3.9"
python-version: "3.10"
session: "tests"

env:
IRIS_TEST_DATA_VERSION: "2.22"
# NOTE: IRIS_TEST_DATA_VERSION is also set in benchmarks_run.yml
IRIS_TEST_DATA_VERSION: "2.28"
ENV_NAME: "ci-tests"

steps:
Expand All @@ -68,30 +69,29 @@ jobs:
- name: "data cache"
uses: ./.github/workflows/composite/iris-data-cache
with:
cache_build: 0
cache_build: 6
env_name: ${{ env.ENV_NAME }}
version: ${{ env.IRIS_TEST_DATA_VERSION }}

- name: "conda package cache"
uses: ./.github/workflows/composite/conda-pkg-cache
with:
cache_build: 0
cache_build: 6
cache_period: ${{ env.CACHE_PERIOD }}
env_name: ${{ env.ENV_NAME }}

- name: "conda install"
uses: conda-incubator/setup-miniconda@v3
with:
miniforge-version: latest
channels: conda-forge,defaults
channels: conda-forge
activate-environment: ${{ env.ENV_NAME }}
auto-update-conda: false
use-only-tar-bz2: true

- name: "conda environment cache"
uses: ./.github/workflows/composite/conda-env-cache
with:
cache_build: 0
cache_build: 6
cache_period: ${{ env.CACHE_PERIOD }}
env_name: ${{ env.ENV_NAME }}
install_packages: "cartopy nox pip"
Expand All @@ -104,14 +104,14 @@ jobs:
- name: "cartopy cache"
uses: ./.github/workflows/composite/cartopy-cache
with:
cache_build: 0
cache_build: 6
cache_period: ${{ env.CACHE_PERIOD }}
env_name: ${{ env.ENV_NAME }}

- name: "nox cache"
uses: ./.github/workflows/composite/nox-cache
with:
cache_build: 2
cache_build: 6
env_name: ${{ env.ENV_NAME }}
lock_file: ${{ env.LOCK_FILE }}

Expand All @@ -136,9 +136,13 @@ jobs:
- name: "iris ${{ matrix.session }}"
env:
PY_VER: ${{ matrix.python-version }}
# Force coloured output on GitHub Actions.
PY_COLORS: "1"
run: |
nox --session ${{ matrix.session }} -- --verbose ${{ matrix.coverage }}

- name: Upload coverage report
uses: codecov/codecov-action@v4
- name: "upload coverage report"
if: ${{ matrix.coverage }}
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/ci-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11"]
python-version: ["3.10", "3.11", "3.12"]
session: ["wheel"]
env:
ENV_NAME: "ci-wheels"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/composite/cartopy-cache/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ inputs:
runs:
using: "composite"
steps:
- uses: actions/cache@v3
- uses: actions/cache@v4
id: cartopy-cache
with:
path: ~/.local/share/cartopy
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/composite/conda-env-cache/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ inputs:
runs:
using: "composite"
steps:
- uses: actions/cache@v3
- uses: actions/cache@v4
id: conda-env-cache
with:
path: ${{ env.CONDA }}/envs/${{ inputs.env_name }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/composite/conda-pkg-cache/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ inputs:
runs:
using: "composite"
steps:
- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: ~/conda_pkgs_dir
key: ${{ runner.os }}-conda-pkgs-${{ inputs.env_name }}-p${{ inputs.cache_period }}-b${{ inputs.cache_build }}
2 changes: 1 addition & 1 deletion .github/workflows/composite/iris-data-cache/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ inputs:
runs:
using: "composite"
steps:
- uses: actions/cache@v3
- uses: actions/cache@v4
id: data-cache
with:
path: ~/iris-test-data
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/composite/nox-cache/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ inputs:
runs:
using: "composite"
steps:
- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: ${{ github.workspace }}/.nox
key: ${{ runner.os }}-nox-${{ inputs.env_name }}-s${{ matrix.session }}-py${{ matrix.python-version }}-b${{ inputs.cache_build }}-${{ hashFiles(inputs.lock_file) }}
2 changes: 1 addition & 1 deletion .github/workflows/refresh-lockfiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ on:

jobs:
refresh_lockfiles:
uses: scitools/workflows/.github/workflows/refresh-lockfiles.yml@2024.02.1
uses: scitools/workflows/.github/workflows/refresh-lockfiles.yml@2024.10.2
secrets: inherit
25 changes: 20 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ minimum_pre_commit_version: 1.21.0

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v5.0.0
hooks:
# Prevent giant files from being committed.
- id: check-added-large-files
Expand All @@ -29,7 +29,7 @@ repos:
- id: no-commit-to-branch

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.2.1"
rev: "v0.7.1"
hooks:
- id: ruff
types: [file, python]
Expand All @@ -38,20 +38,20 @@ repos:
types: [file, python]

- repo: https://github.com/codespell-project/codespell
rev: "v2.2.6"
rev: "v2.3.0"
hooks:
- id: codespell
types_or: [asciidoc, python, markdown, rst]
additional_dependencies: [tomli]

- repo: https://github.com/PyCQA/flake8
rev: 7.0.0
rev: 7.1.1
hooks:
- id: flake8
types: [file, python]

- repo: https://github.com/asottile/blacken-docs
rev: 1.16.0
rev: 1.19.1
hooks:
- id: blacken-docs
types: [file, rst]
Expand All @@ -61,3 +61,18 @@ repos:
hooks:
- id: sort-all
types: [file, python]

- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v1.13.0'
hooks:
- id: mypy
additional_dependencies:
- 'types-requests'
exclude: 'noxfile\.py|docs/src/conf\.py'

- repo: https://github.com/numpy/numpydoc
rev: v1.8.0
hooks:
- id: numpydoc-validation
exclude: "^lib/iris/tests/|docs/gallery_code/"
types: [file, python]
Loading
Loading