Skip to content

Commit

Permalink
Fix/codecov experiment (#76)
Browse files Browse the repository at this point in the history
* update uploader

* explicit pass file

* add file

* explicit file

* add name

* Try experimental install

* Remove fields from cov action

* Change path to file

* add token

* Remove file specification

* Try removing token, see if codecov 'remembers'

Co-authored-by: giovp <[email protected]>
  • Loading branch information
ivirshup and giovp authored Dec 12, 2022
1 parent 1c85df3 commit 1f91773
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .codecov.yaml → .github/codecov.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Based on pydata/xarray
codecov:
require_ci_to_pass: no
require_ci_to_pass: false

coverage:
status:
Expand All @@ -14,4 +14,4 @@ coverage:
comment:
layout: "diff, flags, files"
behavior: once
require_base: no
require_base: false
10 changes: 4 additions & 6 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,20 +45,18 @@ jobs:
run: |
python -m pip install --upgrade pip wheel
pip install pytest-cov
pip install codecov
- name: Install dependencies
run: |
pip install ".[dev,test]"
pip install -e ".[dev,test]"
- name: Test
env:
MPLBACKEND: agg
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
uses: codecov/codecov-action@v3.1.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: unittests
name: coverage
verbose: true

0 comments on commit 1f91773

Please sign in to comment.