Skip to content

Commit

Permalink
Add Python 3.13 to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
KostyaEsmukov committed Nov 23, 2023
1 parent b542f40 commit b0bad73
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,11 @@ jobs:
strategy:
fail-fast: false
matrix: # &test-matrix
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12-dev', 'pypy-3.7']
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12', 'pypy-3.7']
experimental: [false]
include:
- python-version: '3.13-dev'
experimental: true
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -63,8 +66,11 @@ jobs:
strategy:
fail-fast: false
matrix: # *test-matrix https://github.com/actions/runner/issues/1182
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12-dev', 'pypy-3.7']
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12', 'pypy-3.7']
experimental: [false]
include:
- python-version: '3.13-dev'
experimental: true
max-parallel: 2 # Reduce load on the geocoding services
steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion geopy/geocoders/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ def _adapter_error_handler(self, error):
def _format_coordinate(coordinate):
if abs(coordinate) >= 1:
return coordinate # use the default arbitrary precision scientific notation
return f"{coordinate:.7f}"
return f"{coordinate:.7f}" # noqa


def _synchronized(func):
Expand Down
10 changes: 2 additions & 8 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tox]
envlist=
py37{-async,-noextras},
py{38,39,310,311,312,py3},
py{38,39,310,311,312,313,py3},
lint,
rst,

Expand All @@ -15,13 +15,6 @@ passenv = *
allowlist_externals = make
commands = make {env:GEOPY_TOX_TARGET:test}

[testenv:py312]
# aiohttp does not support 3.12 yet
extras =
dev-test
requests
timezone

[testenv:py37-async]
# Run a single job with asyncio adapter:
# (not the whole matrix, to avoid spending extra quota)
Expand All @@ -40,6 +33,7 @@ python =
3.10: py310
3.11: py311
3.12: py312
3.13: py313
pypy3: pypy3
pypy-3.7: pypy3

Expand Down

0 comments on commit b0bad73

Please sign in to comment.