From 0b924164afcd015151968cc21bc9a572a37d1713 Mon Sep 17 00:00:00 2001 From: Callan Gray Date: Sun, 20 Jul 2025 16:10:04 +0800 Subject: [PATCH 1/2] minor doc corrections and CI fixes Signed-off-by: Callan Gray --- .github/workflows/ci.yml | 3 ++- .github/workflows/nightly.yml | 2 +- README.md | 4 ++-- docs/examples/plotting.ipynb | 2 -- pyproject.toml | 2 +- 5 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f7d1b976..71474120 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -99,8 +99,9 @@ jobs: - name: Upload code coverage to Codecov uses: codecov/codecov-action@v5.4.3 with: - file: ./coverage.xml + files: ./coverage.xml flags: unittests env_vars: RUNNER_OS,PYTHON_VERSION name: codecov-umbrella + token: ${{ secrets.CODECOV_TOKEN }} fail_ci_if_error: false diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 41cb4242..40af5624 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -101,6 +101,6 @@ jobs: failure() && steps.tests.outcome == 'failure' && github.event_name == 'schedule' - uses: calgray/issue-from-pytest-log@v1 + uses: xarray-contrib/issue-from-pytest-log@v1 with: log-path: pytest-log.jsonl diff --git a/README.md b/README.md index 3f100009..1cfd9d9b 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ -[![CI](https://github.com/xarray-contrib/astropy-xarray/workflows/CI/badge.svg?branch=main)](https://github.com/xarray-contrib/astropy-xarray/actions?query=branch%3Amain) -[![code coverage](https://codecov.io/gh/xarray-contrib/astropy-xarray/branch/main/graph/badge.svg)](https://codecov.io/gh/xarray-contrib/astropy-xarray) +[![CI](https://github.com/calgray/astropy-xarray/workflows/CI/badge.svg?branch=main)](https://github.com/calgray/astropy-xarray/actions?query=branch%3Amain) +[![code coverage](https://codecov.io/gh/calgray/astropy-xarray/branch/main/graph/badge.svg)](https://codecov.io/gh/calgray/astropy-xarray) [![docs](https://readthedocs.org/projects/astropy-xarray/badge/?version=latest)](https://astropy-xarray.readthedocs.io) [![PyPI version](https://img.shields.io/pypi/v/astropy-xarray.svg)](https://pypi.org/project/astropy-xarray) [![codestyle](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/python/black) diff --git a/docs/examples/plotting.ipynb b/docs/examples/plotting.ipynb index 6282f133..84578c3d 100644 --- a/docs/examples/plotting.ipynb +++ b/docs/examples/plotting.ipynb @@ -21,11 +21,9 @@ "import astropy_xarray # noqa: F401\n", "\n", "# to be able to read unit attributes following the CF conventions\n", - "# import cf_xarray.units # must be imported before pint_xarray\n", "u.set_enabled_aliases(\n", " {\n", " \"degK\": u.Kelvin,\n", - " \"K\": u.Kelvin,\n", " \"degrees_north\": u.deg,\n", " \"degrees_east\": u.deg,\n", " },\n", diff --git a/pyproject.toml b/pyproject.toml index e222c6de..2b731d76 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,8 +5,8 @@ build-backend = "setuptools.build_meta" [project] name = "astropy-xarray" authors = [ - { name = "Tom Nicholas", email = "tomnicholas1@googlemail.com" }, { name = "Callan Gray", email = "calj.gray@gmail.com" }, + { name = "Tom Nicholas", email = "tomnicholas1@googlemail.com" }, ] description = "Physical units interface to xarray using astropy" license = { text = "Apache-2" } From b86b66ab3924d89b97257f89327fd425373401e4 Mon Sep 17 00:00:00 2001 From: Callan Gray Date: Sun, 20 Jul 2025 16:50:43 +0800 Subject: [PATCH 2/2] add codecov to MRs Signed-off-by: Callan Gray --- .codecov.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.codecov.yml b/.codecov.yml index f3a055c0..5f4e0951 100644 --- a/.codecov.yml +++ b/.codecov.yml @@ -2,7 +2,7 @@ codecov: ci: # by default, codecov doesn't recognize azure as a CI provider - dev.azure.com - require_ci_to_pass: yes + require_ci_to_pass: true coverage: status: @@ -13,4 +13,10 @@ coverage: patch: false changes: false -comment: off +comment: + layout: " diff, flags, files" + behavior: default + require_changes: false + require_base: false + require_head: true + hide_project_coverage: false