Skip to content

Commit

Permalink
use python codecov directly
Browse files Browse the repository at this point in the history
  • Loading branch information
randy3k committed Aug 20, 2023
1 parent dcff4f8 commit b6ff64b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,12 @@ jobs:
pytest -s --coverage
coverage combine
coverage xml -i -o coverage.xml
- uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: codecov
run: |
python -m pip install codecov
codecov
env:
CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}}

twine:
name: Upload tarball
Expand Down
2 changes: 1 addition & 1 deletion radian/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def main(cleanup=None):
parser.add_option("--restore-data", action="store_true", dest="restore_data", help="Restore previously saved objects")
parser.add_option("--debug", action="store_true", dest="debug", help="Debug mode")
parser.add_option("--coverage", action="store_true", dest="coverage", help=optparse.SUPPRESS_HELP)
parser.add_option("--cprofile", action="store_true", dest="coverage", help=optparse.SUPPRESS_HELP)
parser.add_option("--cprofile", action="store_true", dest="cprofile", help=optparse.SUPPRESS_HELP)

# we accept these options, but never check them
parser.add_option("--no-save", action="store_true", dest="no_save", help=optparse.SUPPRESS_HELP)
Expand Down

0 comments on commit b6ff64b

Please sign in to comment.