Skip to content

Commit

Permalink
Update codecov to action stage in workflows(issue #1632) (#1634)
Browse files Browse the repository at this point in the history
* Update codecov to action stage in workflows
  • Loading branch information
Nageshbansal committed Jan 21, 2022
1 parent e5ba505 commit 1b254de
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 16 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,11 @@ jobs:
run: |
pytest -v -k "not test_geojson2csv and not test_mysql_integration" --cov=retriever
flake8 --ignore=E501,W503,E402,F401,F403,E722,F841,W504 retriever --max-line-length=90 2>&1
yapf -d --recursive ./retriever/ --style=.style.yapf 2>&1
yapf -d --recursive ./retriever/ --style=.style.yapf 2>&1
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
# token: ${{ secrets.CODECOV_TOKEN }} not required for public project
file: ./coverage.xml

11 changes: 0 additions & 11 deletions codecov.yml

This file was deleted.

4 changes: 2 additions & 2 deletions retriever/engines/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def choose_engine(opts, choice=True):
"{db}" not in opts['table_name']):
for opt in engine.required_opts:
if opt[0] == 'table_name':
raise Exception('Accepted Table format ' '{fom}'.format(fom=opt[2]))

raise Exception('Accepted Table format '
'{fom}'.format(fom=opt[2]))
engine.opts = opts
return engine
6 changes: 4 additions & 2 deletions retriever/lib/scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ def check_retriever_minimum_version(module):

if hasattr(module, "retriever_minimum_version"):
if not parse_version(VERSION) >= parse_version("{}".format(mod_ver)):
print("{} is supported by Retriever version " "{}".format(m, mod_ver))
print("{} is supported by Retriever version "
"{}".format(m, mod_ver))
print("Current version is {}".format(VERSION))
return False
return True
Expand Down Expand Up @@ -193,7 +194,8 @@ def name_matches(scripts, arg):
"isn't currently available in the Retriever.".format(arg))

if matches:
print("Did you mean:" " \n\t{}".format("\n\t".join([i[0] for i in matches])))
print("Did you mean:"
" \n\t{}".format("\n\t".join([i[0] for i in matches])))
return None


Expand Down

0 comments on commit 1b254de

Please sign in to comment.