Skip to content

Commit 14b1591

Browse files
committed
Merge remote-tracking branch 'upstream/main' into adopt_sphinx_design
* upstream/main: (59 commits) Updated environment lockfiles (SciTools#5211) update ci locks location (SciTools#5228) Fixes to _discontiguity_in_bounds (attempt 2) (SciTools#4975) Finalises Lazy Data documentation (SciTools#5137) Modernize and simplify iris.analysis._Groupby (SciTools#5015) clarity on whatsnew entry contributors (SciTools#5240) Handle derived coordinates correctly in `concatenate` (SciTools#5096) Use real array for data of of small netCDF variables. (SciTools#5229) Bump scitools/workflows from 2023.04.1 to 2023.04.2 (SciTools#5236) fixing whatsnew entry remove results creation commit from blame configure codecov adding a whatsnew entry Replacing numpy legacy printing with array2string and remaking results for dependent tests Adding a whatsnew entry for 5224 (SciTools#5234) Cf cell method (SciTools#5224) Bump scitools/workflows from 2023.03.3 to 2023.04.1 (SciTools#5231) [pre-commit.ci] pre-commit autoupdate (SciTools#5230) Bump scitools/workflows from 2023.03.2 to 2023.03.3 (SciTools#5227) raise dask min pin (SciTools#5225) ...
2 parents fc0313e + 4dd45cc commit 14b1591

File tree

758 files changed

+31758
-26330
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

758 files changed

+31758
-26330
lines changed

.git-blame-ignore-revs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Format: numpy array format (#5235)
2+
c18dcd8dafef0cc7bbbf80dfce66f76a46ce59c5

.github/workflows/benchmark.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,20 @@ jobs:
2121
env:
2222
IRIS_TEST_DATA_LOC_PATH: benchmarks
2323
IRIS_TEST_DATA_PATH: benchmarks/iris-test-data
24-
IRIS_TEST_DATA_VERSION: "2.18"
24+
IRIS_TEST_DATA_VERSION: "2.19"
2525
# Lets us manually bump the cache to rebuild
2626
ENV_CACHE_BUILD: "0"
2727
TEST_DATA_CACHE_BUILD: "2"
28-
PY_VER: 3.8
2928

3029
steps:
3130
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
3231
- uses: actions/checkout@v3
3332
with:
3433
fetch-depth: 0
3534

36-
- name: Install Nox
35+
- name: Install ASV & Nox
3736
run: |
38-
pip install nox
37+
pip install asv nox
3938
4039
- name: Cache environment directories
4140
id: cache-env-dir
@@ -78,7 +77,7 @@ jobs:
7877
7978
if [ "$first_commit" != "" ]
8079
then
81-
nox --session="benchmarks(overnight)" -- $first_commit
80+
python benchmarks/bm_runner.py overnight $first_commit
8281
fi
8382
8483
- name: Create issues for performance shifts

.github/workflows/ci-tests.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,12 @@ jobs:
3636
matrix:
3737
os: ["ubuntu-latest"]
3838
python-version: ["3.10"]
39-
session: ["tests", "doctest", "gallery", "linkcheck"]
39+
session: ["doctest", "gallery", "linkcheck"]
4040
include:
41+
- os: "ubuntu-latest"
42+
python-version: "3.10"
43+
session: "tests"
44+
coverage: "--coverage"
4145
- os: "ubuntu-latest"
4246
python-version: "3.9"
4347
session: "tests"
@@ -46,7 +50,7 @@ jobs:
4650
session: "tests"
4751

4852
env:
49-
IRIS_TEST_DATA_VERSION: "2.18"
53+
IRIS_TEST_DATA_VERSION: "2.19"
5054
ENV_NAME: "ci-tests"
5155

5256
steps:
@@ -59,7 +63,7 @@ jobs:
5963
CACHE_WEEKS: 2
6064
run: |
6165
echo "CACHE_PERIOD=$(date +%Y).$(expr $(date +%U) / ${CACHE_WEEKS})" >> ${GITHUB_ENV}
62-
echo "LOCK_FILE=requirements/ci/nox.lock/py$(echo ${{ matrix.python-version }} | tr -d '.')-linux-64.lock" >> ${GITHUB_ENV}
66+
echo "LOCK_FILE=requirements/locks/py$(echo ${{ matrix.python-version }} | tr -d '.')-linux-64.lock" >> ${GITHUB_ENV}
6367
6468
- name: "data cache"
6569
uses: ./.github/workflows/composite/iris-data-cache
@@ -107,7 +111,7 @@ jobs:
107111
- name: "nox cache"
108112
uses: ./.github/workflows/composite/nox-cache
109113
with:
110-
cache_build: 0
114+
cache_build: 2
111115
env_name: ${{ env.ENV_NAME }}
112116
lock_file: ${{ env.LOCK_FILE }}
113117

@@ -133,4 +137,8 @@ jobs:
133137
env:
134138
PY_VER: ${{ matrix.python-version }}
135139
run: |
136-
nox --session ${{ matrix.session }} -- --verbose
140+
nox --session ${{ matrix.session }} -- --verbose ${{ matrix.coverage }}
141+
142+
- name: Upload coverage report
143+
uses: codecov/codecov-action@v3
144+
if: ${{ matrix.coverage }}

.github/workflows/ci-wheels.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
CACHE_WEEKS: 2
7575
run: |
7676
echo "CACHE_PERIOD=$(date +%Y).$(expr $(date +%U) / ${CACHE_WEEKS})" >> ${GITHUB_ENV}
77-
echo "LOCK_FILE=requirements/ci/nox.lock/py$(echo ${{ matrix.python-version }} | tr -d '.')-linux-64.lock" >> ${GITHUB_ENV}
77+
echo "LOCK_FILE=requirements/locks/py$(echo ${{ matrix.python-version }} | tr -d '.')-linux-64.lock" >> ${GITHUB_ENV}
7878
7979
- name: "conda package cache"
8080
uses: ./.github/workflows/composite/conda-pkg-cache
@@ -103,7 +103,7 @@ jobs:
103103
- name: "nox cache"
104104
uses: ./.github/workflows/composite/nox-cache
105105
with:
106-
cache_build: 0
106+
cache_build: 1
107107
env_name: ${{ env.ENV_NAME }}
108108
lock_file: ${{ env.LOCK_FILE }}
109109

@@ -132,7 +132,8 @@ jobs:
132132
name: "publish to test.pypi"
133133
runs-on: ubuntu-latest
134134
# upload to Test PyPI for every commit on main branch
135-
if: github.event_name == 'push' && github.event.ref == 'refs/heads/main'
135+
# and check for the SciTools repo
136+
if: github.event_name == 'push' && github.event.ref == 'refs/heads/main' && github.repository-owner == 'SciTools'
136137
steps:
137138
- uses: actions/download-artifact@v3
138139
with:
@@ -152,7 +153,7 @@ jobs:
152153
name: "publish to pypi"
153154
runs-on: ubuntu-latest
154155
# upload to PyPI for every tag starting with 'v'
155-
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
156+
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v') && github.repository-owner == 'SciTools'
156157
steps:
157158
- uses: actions/download-artifact@v3
158159
with:

.github/workflows/refresh-lockfiles.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ on:
1414

1515
jobs:
1616
refresh_lockfiles:
17-
uses: scitools/workflows/.github/workflows/refresh-lockfiles.yml@main
17+
uses: scitools/workflows/.github/workflows/refresh-lockfiles.yml@2023.04.2
1818
secrets: inherit

.github/workflows/stale.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
if: "github.repository == 'SciTools/iris'"
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: actions/stale@v7
17+
- uses: actions/stale@v8
1818
with:
1919
repo-token: ${{ secrets.GITHUB_TOKEN }}
2020

.pre-commit-config.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ repos:
2929
- id: no-commit-to-branch
3030

3131
- repo: https://github.com/psf/black
32-
rev: 22.12.0
32+
rev: 23.3.0
3333
hooks:
3434
- id: black
3535
pass_filenames: false
@@ -43,18 +43,17 @@ repos:
4343
args: [--config=./setup.cfg]
4444

4545
- repo: https://github.com/pycqa/isort
46-
rev: 5.11.4
46+
rev: 5.12.0
4747
hooks:
4848
- id: isort
4949
types: [file, python]
5050
args: [--filter-files]
5151

5252
- repo: https://github.com/asottile/blacken-docs
53-
rev: v1.12.1
53+
rev: 1.13.0
5454
hooks:
5555
- id: blacken-docs
5656
types: [file, rst]
57-
additional_dependencies: [black==21.6b0]
5857

5958
- repo: https://github.com/aio-libs/sort-all
6059
rev: v1.2.0

.readthedocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ build:
1919
- git stash pop
2020

2121
conda:
22-
environment: requirements/ci/readthedocs.yml
22+
environment: requirements/readthedocs.yml
2323

2424
sphinx:
2525
configuration: docs/src/conf.py

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
lockfiles:
2-
python tools/update_lockfiles.py -o requirements/ci/nox.lock requirements/ci/py*.yml
2+
python tools/update_lockfiles.py -o requirements/locks requirements/py*.yml

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
<a href="https://results.pre-commit.ci/latest/github/SciTools/iris/main">
2020
<img src="https://results.pre-commit.ci/badge/github/SciTools/iris/main.svg"
2121
alt="pre-commit.ci status"></a>
22+
<a href="https://codecov.io/gh/SciTools/iris">
23+
<img src="https://codecov.io/gh/SciTools/iris/branch/main/graph/badge.svg?token=0GeICSIF3g"
24+
alt="code coverage"></a>
2225
</p>
2326

2427
<p align="center">
@@ -54,3 +57,24 @@ For documentation see the
5457
developer version or the most recent released
5558
<a href="https://scitools-iris.readthedocs.io/en/stable/">stable</a> version.
5659
</p>
60+
61+
## [#ShowYourStripes](https://showyourstripes.info/s/globe)
62+
63+
<h4 align="center">
64+
<a href="https://showyourstripes.info/s/globe">
65+
<img src="https://raw.githubusercontent.com/ed-hawkins/show-your-stripes/master/2021/GLOBE---1850-2021-MO.png"
66+
height="50" width="800"
67+
alt="#showyourstripes Global 1850-2021"></a>
68+
</h4>
69+
70+
**Graphics and Lead Scientist**: [Ed Hawkins](http://www.met.reading.ac.uk/~ed/home/index.php), National Centre for Atmospheric Science, University of Reading.
71+
72+
**Data**: Berkeley Earth, NOAA, UK Met Office, MeteoSwiss, DWD, SMHI, UoR, Meteo France & ZAMG.
73+
74+
<p>
75+
<a href="https://showyourstripes.info/s/globe">#ShowYourStripes</a> is distributed under a
76+
<a href="https://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a>
77+
<a href="https://creativecommons.org/licenses/by/4.0/">
78+
<img src="https://i.creativecommons.org/l/by/4.0/80x15.png" alt="creative-commons-by" style="border-width:0"></a>
79+
</p>
80+

0 commit comments

Comments
 (0)