Skip to content

Commit

Permalink
Add codecov to Github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
robhudson committed Apr 14, 2023
1 parent 852ddac commit cdab6d1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/pull_request_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,10 @@ jobs:
- name: "Run Python tests (on Docker)"
run: |
make clean test-ci
CONTAINER_ID=$(docker ps -alq)
docker cp $CONTAINER_ID:/app/python_coverage .
- name: "Upload coverage to Codecov"
uses: codecov/codecov-action@v3
with:
files: python_coverage/coverage.xml
verbose: true # optional (default = false)
1 change: 1 addition & 0 deletions bin/run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ py.test basket \
--cov-config=.coveragerc \
--cov-report=html \
--cov-report=term-missing \
--cov-report=xml:python_coverage/coverage.xml \
--cov=.

0 comments on commit cdab6d1

Please sign in to comment.