Skip to content

Use python 3.9 for coverage #823

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 12, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: pypy3
python-version: 3.9
- name: Ensure we have new enough versions to respect python_version
run: python -m pip install -U pip setuptools
- name: Install tox
run: python -m pip install tox
- name: Collect & Upload Coverage
# codecov.io is too flaky to fail for this right now
continue-on-error: true
run: python -m tox -e pypy3-format-codecov
run: python -m tox -e py39-format-codecov
env:
CODECOV_TOKEN: 2b38dae1-41c4-4435-a29d-79a1299e5617
12 changes: 6 additions & 6 deletions jsonschema/_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def is_ipv6(instance):

try:
from fqdn import FQDN
except ImportError:
except ImportError: # pragma: no cover
pass
else:
@_checks_drafts(
Expand All @@ -223,7 +223,7 @@ def is_host_name(instance):
try:
# The built-in `idna` codec only implements RFC 3890, so we go elsewhere.
import idna
except ImportError:
except ImportError: # pragma: no cover
pass
else:
@_checks_drafts(
Expand All @@ -242,7 +242,7 @@ def is_idn_host_name(instance):
except ImportError:
try:
from rfc3986_validator import validate_rfc3986
except ImportError:
except ImportError: # pragma: no cover
pass
else:
@_checks_drafts(name="uri")
Expand Down Expand Up @@ -348,7 +348,7 @@ def is_draft3_time(instance):
try: # webcolors<1.11
from webcolors import css21_names_to_hex as CSS21_NAMES_TO_HEX
import webcolors
except ImportError:
except ImportError: # pragma: no cover
pass
else:
def is_css_color_code(instance):
Expand All @@ -371,7 +371,7 @@ def is_css3_color(instance):

try:
import jsonpointer
except ImportError:
except ImportError: # pragma: no cover
pass
else:
@_checks_drafts(
Expand Down Expand Up @@ -413,7 +413,7 @@ def is_relative_json_pointer(instance):

try:
import uri_template
except ImportError:
except ImportError: # pragma: no cover
pass
else:
@_checks_drafts(
Expand Down