Skip to content

Commit

Permalink
Update Github CI configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
romis2012 committed Jul 31, 2024
1 parent a339a9a commit e915cf2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@ jobs:
# run: python -m pytest tests --cov=./aiohttp_socks --cov-report term-missing -s
run: python -m pytest tests --cov=./aiohttp_socks --cov-report xml
- name: Upload coverage
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: romis2012/aiohttp-socks
file: ./coverage.xml
flags: unit
fail_ci_if_error: false
4 changes: 2 additions & 2 deletions aiohttp_socks/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ async def _wrap_create_connection(
try:
host = addr_infos[0][4][0]
port = addr_infos[0][4][1]
except IndexError:
except IndexError: # pragma: no cover
raise ValueError('Invalid arg: `addr_infos`')

ssl = kwargs.get('ssl')
Expand Down Expand Up @@ -191,7 +191,7 @@ async def _wrap_create_connection(
try:
host = addr_infos[0][4][0]
port = addr_infos[0][4][1]
except IndexError:
except IndexError: # pragma: no cover
raise ValueError('Invalid arg: `addr_infos`')

ssl = kwargs.get('ssl')
Expand Down

0 comments on commit e915cf2

Please sign in to comment.