Skip to content

Commit

Permalink
Fix codecov coverage reports (#446)
Browse files Browse the repository at this point in the history
* first pass at codecov improvements

* create pytest.xml to upload

* switch to editable install

* temp reduce matrix

* flip install args?

* recreate matrix

* add to release notes

* fix wrong pr number in release notes
  • Loading branch information
anissa111 authored Aug 23, 2023
1 parent 8b69338 commit d4525ce
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 9 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ "ubuntu-latest", "macos-latest"]
os: ["ubuntu-latest", "macos-latest"]
python-version: ["3.9", "3.10", "3.11"]
steps:
- name: Cancel previous runs
Expand All @@ -43,19 +43,23 @@ jobs:

- name: Install geocat-comp
run: |
python -m pip install . --no-deps
python -m pip install --no-deps -e .
- name: conda list
run: |
conda list
- name: Run Namespace Tests
run: |
python -m pytest test
- name: Run Tests
run: python -m pytest test -v
--cov=./geocat/comp
--cov-report=xml
--junitxml=pytest.xml

- name: Run Coverage Tests
run: |
python -m pytest test -v --cov=./geocat/comp --cov-report=xml
- name: Upload test results
uses: actions/upload-artifact@v3
with:
name: Test results for ${{ runner.os }}-${{ matrix.python-version }}
path: pytest.xml

- name: Upload code coverage to Codecov
uses: codecov/[email protected]
Expand Down
6 changes: 5 additions & 1 deletion docs/release-notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,18 @@
Release Notes
=============

v2023.07.0 (Jul X, 2023)
v2023.09.0 (Sept X, 2023)
-----------------------
[Plain text summary here]

New Features
^^^^^^^^^^^^
* User-defined seasonal boundaries, `custom_seasons`, enabled for `climatology_average` by `Julia Kent`_ in (:pr:441)

Bug Fixes
^^^^^^^^^
* Fix codecov coverage reporting issue by `Anissa Zacharias`_ in (:pr:446)


v2023.06.1 (June 23, 2023)
--------------------------
Expand Down

0 comments on commit d4525ce

Please sign in to comment.