Skip to content

Commit

Permalink
update the action to upload the coverage reports
Browse files Browse the repository at this point in the history
Signed-off-by: Jose Borreguero <[email protected]>
  • Loading branch information
jmborr committed Apr 24, 2024
1 parent 0b791e8 commit 912d85b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,21 @@ jobs:
- name: run unit tests
run: |
echo "running unit tests"
python -m pytest -m "not datarepo and not sns_mounted" --cov=src --cov-report=xml --cov-report=term-missing tests/
python -m pytest -vv -m "not datarepo and not sns_mounted" --cov=src --cov-report=xml --cov-report=term-missing tests/
mv .coverage .coverage.unit
- name: run integration tests
run: |
echo "running integration tests"
python -m pytest -m "datarepo" --cov=src --cov-report=xml --cov-report=term-missing tests/
git submodule update --init
python -m pytest -vv -m "datarepo" --cov=src --cov-report=xml --cov-report=term-missing tests/
mv .coverage .coverage.integration
- name: combine coverage reports
run: |
coverage combine # merge all .coverage.* files into .coverage
- name: upload coverage to codecov
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: build conda package
run: |
# set up environment
Expand Down

0 comments on commit 912d85b

Please sign in to comment.