From 334d6d4d6b7d3bfe88ed23718127f7b370d17e1b Mon Sep 17 00:00:00 2001 From: giovp Date: Mon, 12 Dec 2022 14:53:40 +0100 Subject: [PATCH 1/6] update uploader --- .github/workflows/test.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 1da35f4c..2385a350 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -45,7 +45,6 @@ jobs: run: | python -m pip install --upgrade pip wheel pip install pytest-cov - pip install codecov - name: Install dependencies run: | pip install ".[dev,test]" @@ -57,8 +56,7 @@ jobs: run: | pytest -v --cov --color=yes - name: Upload coverage to Codecov - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v3.1.1 with: - token: ${{ secrets.CODECOV_TOKEN }} flags: unittests verbose: true From 0100d4219f483209522596e84dee91249f6bf876 Mon Sep 17 00:00:00 2001 From: giovp Date: Mon, 12 Dec 2022 15:01:15 +0100 Subject: [PATCH 2/6] explicit pass file --- .codecov.yaml | 17 ----------------- .github/workflows/test.yaml | 3 +-- 2 files changed, 1 insertion(+), 19 deletions(-) delete mode 100644 .codecov.yaml diff --git a/.codecov.yaml b/.codecov.yaml deleted file mode 100644 index 91e2c59d..00000000 --- a/.codecov.yaml +++ /dev/null @@ -1,17 +0,0 @@ -# Based on pydata/xarray -codecov: - require_ci_to_pass: no - -coverage: - status: - project: - default: - # Require 1% coverage, i.e., always succeed - target: 1 - patch: false - changes: false - -comment: - layout: "diff, flags, files" - behavior: once - require_base: no diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 2385a350..145c175f 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -58,5 +58,4 @@ jobs: - name: Upload coverage to Codecov uses: codecov/codecov-action@v3.1.1 with: - flags: unittests - verbose: true + files: /home/runner/work/spatialdata/spatialdata/coverage.xml From 7653990920f9d69449e3fa9c811fd44c4ed9e135 Mon Sep 17 00:00:00 2001 From: giovp Date: Mon, 12 Dec 2022 15:01:28 +0100 Subject: [PATCH 3/6] add file --- .github/codecov.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/codecov.yml diff --git a/.github/codecov.yml b/.github/codecov.yml new file mode 100644 index 00000000..872442c7 --- /dev/null +++ b/.github/codecov.yml @@ -0,0 +1,17 @@ +# Based on pydata/xarray +codecov: + require_ci_to_pass: false + +coverage: + status: + project: + default: + # Require 1% coverage, i.e., always succeed + target: 1 + patch: false + changes: false + +comment: + layout: "diff, flags, files" + behavior: once + require_base: false From 5389b3f15e2d4f34ce5f304e40a2b34a90d59d14 Mon Sep 17 00:00:00 2001 From: giovp Date: Mon, 12 Dec 2022 15:06:37 +0100 Subject: [PATCH 4/6] explicit file --- .github/workflows/test.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 145c175f..630b2bf4 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -54,7 +54,7 @@ jobs: PLATFORM: ${{ matrix.os }} DISPLAY: :42 run: | - pytest -v --cov --color=yes + pytest -v --cov --color=yes --cov-report=xml - name: Upload coverage to Codecov uses: codecov/codecov-action@v3.1.1 with: From 30d8bf8cf459240b6ec92099755f03c2507b644e Mon Sep 17 00:00:00 2001 From: giovp Date: Mon, 12 Dec 2022 15:48:38 +0100 Subject: [PATCH 5/6] add name --- .github/workflows/test.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 630b2bf4..4f24566a 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -58,4 +58,5 @@ jobs: - name: Upload coverage to Codecov uses: codecov/codecov-action@v3.1.1 with: + name: coverage files: /home/runner/work/spatialdata/spatialdata/coverage.xml From f2e31a1c18b48bcea2f76175247316b503a277fe Mon Sep 17 00:00:00 2001 From: Isaac Virshup Date: Mon, 12 Dec 2022 16:32:32 +0100 Subject: [PATCH 6/6] Try experimental install --- .github/workflows/test.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 4f24566a..74372211 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -47,7 +47,7 @@ jobs: pip install pytest-cov - name: Install dependencies run: | - pip install ".[dev,test]" + pip install -e ".[dev,test]" - name: Test env: MPLBACKEND: agg