Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix codecov #71

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
12 changes: 5 additions & 7 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
verbose: true
name: coverage
files: /home/runner/work/spatialdata/spatialdata/coverage.xml