From 5ff9fd7e8984e91ed2cb135b4799c85b9caf619f Mon Sep 17 00:00:00 2001 From: nfahlgren Date: Tue, 27 Feb 2024 10:49:08 -0600 Subject: [PATCH 1/4] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 0349a18..ac4d787 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,8 @@ Geospatial add-on package to PlantCV ## Installation +Developers should set up a PlantCV conda environment from source code as normal, then: + ```bash cd plantcv-geospatial pip install -e . From e541ff2d19617191ed52fb422e7cbc209e074838 Mon Sep 17 00:00:00 2001 From: Noah Fahlgren Date: Fri, 1 Mar 2024 18:02:12 -0600 Subject: [PATCH 2/4] Enable test coverage --- .deepsource.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.deepsource.toml b/.deepsource.toml index 2d0e342..2cf3b65 100644 --- a/.deepsource.toml +++ b/.deepsource.toml @@ -10,3 +10,7 @@ enabled = true runtime_version = "3.x.x" max_line_length = 127 skip_doc_coverage = ["magic", "init", "class", "module"] + +[[analyzers]] +name = "test-coverage" +enabled = true From 3aa1adba543009ab1c925dec93953ba7d5d43370 Mon Sep 17 00:00:00 2001 From: Noah Fahlgren Date: Fri, 1 Mar 2024 18:04:35 -0600 Subject: [PATCH 3/4] Utilize deepsource for coverage --- .github/workflows/continuous-integration.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index de2dab1..cb253f6 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -43,11 +43,11 @@ jobs: run: | pip install . py.test --cov-report=xml --cov=plantcv tests/ - - name: Upload coverage to Codecov - uses: codecov/codecov-action@v3 + - name: Upload coverage to Deepsource + uses: deepsourcelabs/test-coverage-action@master with: - token: ${{ secrets.CODECOV_TOKEN }} - file: ./coverage.xml - flags: unittests - env_vars: OS,PYTHON - fail_ci_if_error: true + key: python + coverage-file: coverage.xml + dsn: ${{ secrets.DEEPSOURCE_DSN }} + env: + DEEPSOURCE_DSN: ${{ secrets.DEEPSOURCE_DSN }} From 4c325f99299a2ddadf31c073db5463c91bc48f57 Mon Sep 17 00:00:00 2001 From: Noah Fahlgren Date: Fri, 1 Mar 2024 18:06:56 -0600 Subject: [PATCH 4/4] Add DeepSource coverage badge --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ac4d787..e2f9966 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Geospatial add-on package to PlantCV [![builds](https://github.com/danforthcenter/plantcv-geospatial/actions/workflows/continuous-integration.yml/badge.svg?branch=main)](https://github.com/danforthcenter/plantcv-geospatial/actions/workflows/continuous-integration.yml) -[![codecov](https://codecov.io/gh/danforthcenter/plantcv-geospatial/graph/badge.svg?token=M9TBGYVXJ9)](https://codecov.io/gh/danforthcenter/plantcv-geospatial) +[![DeepSource](https://app.deepsource.com/gh/danforthcenter/plantcv-geospatial.svg/?label=code+coverage&show_trend=true&token=4ueUDDsEmz3YIs1UPNFPdk4r)](https://app.deepsource.com/gh/danforthcenter/plantcv-geospatial/) [![DeepSource](https://app.deepsource.com/gh/danforthcenter/plantcv-geospatial.svg/?label=active+issues&show_trend=true&token=4ueUDDsEmz3YIs1UPNFPdk4r)](https://app.deepsource.com/gh/danforthcenter/plantcv-geospatial/) ## Installation