Skip to content

Commit

Permalink
Merge f26d3e1 into d7ef951
Browse files Browse the repository at this point in the history
  • Loading branch information
rhugonnet committed Aug 17, 2022
2 parents d7ef951 + f26d3e1 commit 795ee47
Showing 1 changed file with 28 additions and 2 deletions.
30 changes: 28 additions & 2 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
branches: [ main ]

jobs:
build:
test:
name: ${{ matrix.os }}, python ${{ matrix.python-version}}
runs-on: ${{ matrix.os }}

Expand Down Expand Up @@ -56,4 +56,30 @@ jobs:
python -c "from xdem.examples import *; download_longyearbyen_examples(overwrite=False)"
- name: Test with pytest
run: |
pytest -ra -n=auto
pip install pytest-cov coveralls
pytest -ra -n=auto --cov=xdem/
# We can skip the conversion step once this PR of pytest is merged: https://github.com/pytest-dev/pytest-cov/pull/536
# and replace pytest argument by --cov-report=lcov
- name: Converting coverage to LCOV format
run: |
pip install coveragepy-lcov
coveragepy-lcov --data_file_path .coverage --output_file_path coverage.info
- name: Upload coverage to Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
flag-name: run-${{ matrix.test_number }}
path-to-lcov: coverage.info
parallel: true

finish:
needs: test
runs-on: ubuntu-latest
steps:
- name: Upload to Coveralls finished
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
parallel-finished: true

0 comments on commit 795ee47

Please sign in to comment.