From aa5dba02cbd2eee13d84af39e5f85a2fd720d040 Mon Sep 17 00:00:00 2001 From: Maximilian Roos Date: Wed, 27 Apr 2022 18:30:16 -0700 Subject: [PATCH 1/3] Restrict annotations to a single run in GHA --- .github/workflows/ci.yaml | 5 +++++ ci/requirements/environment.yml | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 0f8073c017b..064279c3390 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -78,6 +78,11 @@ jobs: run: | mamba env update -f $CONDA_ENV_FILE + # We only want to install this on one run, because otherwise we'll have + # duplicate annotations. + - name: Install error reporter + if: ${{ matrix.os }} == 'ubuntu-latest' and ${{ python-version }} == '3.10' + - name: Install xarray run: | python -m pip install --no-deps -e . diff --git a/ci/requirements/environment.yml b/ci/requirements/environment.yml index 9269a70badf..516c964afc7 100644 --- a/ci/requirements/environment.yml +++ b/ci/requirements/environment.yml @@ -37,7 +37,6 @@ dependencies: - pytest - pytest-cov - pytest-env - - pytest-github-actions-annotate-failures - pytest-xdist - rasterio - scipy From a5f04fe6e96ab0319b70fee4ecbe2eb4c8f7cac2 Mon Sep 17 00:00:00 2001 From: Maximilian Roos Date: Wed, 27 Apr 2022 18:31:41 -0700 Subject: [PATCH 2/3] --- .github/workflows/ci.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 064279c3390..f43506616ac 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -82,6 +82,8 @@ jobs: # duplicate annotations. - name: Install error reporter if: ${{ matrix.os }} == 'ubuntu-latest' and ${{ python-version }} == '3.10' + run: | + python -m pip install pytest-github-actions-annotate-failures - name: Install xarray run: | From 7ceae56f40ce5fcb65a14cc5cb803702aabff764 Mon Sep 17 00:00:00 2001 From: Maximilian Roos Date: Wed, 27 Apr 2022 19:46:57 -0700 Subject: [PATCH 3/3] --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index f43506616ac..d81e710dc2e 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -81,7 +81,7 @@ jobs: # We only want to install this on one run, because otherwise we'll have # duplicate annotations. - name: Install error reporter - if: ${{ matrix.os }} == 'ubuntu-latest' and ${{ python-version }} == '3.10' + if: ${{ matrix.os }} == 'ubuntu-latest' and ${{ matrix.python-version }} == '3.10' run: | python -m pip install pytest-github-actions-annotate-failures