Skip to content

Commit e4fded7

Browse files
authored
Merge pull request #99 from python-astrodynamics/fix/ci
Fix CI
2 parents 74ecaa5 + f221684 commit e4fded7

File tree

5 files changed

+16
-10
lines changed

5 files changed

+16
-10
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
strategy:
1717
fail-fast: false
1818
matrix:
19-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
19+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
2020

2121
steps:
2222
- uses: "actions/checkout@v4"
@@ -40,7 +40,7 @@ jobs:
4040
python -m coverage xml
4141
4242
- name: "Upload coverage to Codecov"
43-
uses: codecov/codecov-action@v4
43+
uses: codecov/codecov-action@v5
4444
with:
4545
fail_ci_if_error: true
4646
token: ${{ secrets.CODECOV_TOKEN }}

.readthedocs.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,6 @@ build:
1010
os: ubuntu-22.04
1111
tools:
1212
python: "3.10"
13+
14+
sphinx:
15+
configuration: docs/conf.py

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,6 @@ exclude_lines = ["pragma: no cover", "^\\s*pass\\s*$"]
7474

7575
[tool.isort]
7676
profile = "black"
77+
78+
[tool.pytest.ini_options]
79+
asyncio_default_fixture_loop_scope = "function"

tests/test_spacetrack.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ def test_raise_for_status(respx_mock):
383383
with pytest.raises(httpx.HTTPStatusError) as exc:
384384
_raise_for_status(response2)
385385
assert "Space-Track" in str(exc.value)
386-
assert '{"wrongkey": "problem"}' in str(exc.value)
386+
assert '{"wrongkey":"problem"}' in str(exc.value)
387387

388388
with pytest.raises(httpx.HTTPStatusError) as exc:
389389
_raise_for_status(response3)

tox.ini

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tox]
22
minversion = 2.4
3-
envlist = py38,py39,py310,py311,py312,pep8,docs,coverage-report
3+
envlist = py38,py39,py310,py311,py312,py313,pep8,docs,coverage-report
44
isolated_build = True
55

66
[testenv]
@@ -12,22 +12,22 @@ commands =
1212
coverage run -m pytest {posargs}
1313

1414
[testenv:coverage-report]
15-
basepython = python3.12
15+
basepython = python3.13
1616
skip_install = true
17-
depends = py38,py39,py310,py311,py312
17+
depends = py38,py39,py310,py311,py312,py313
1818
commands =
1919
coverage combine
2020
coverage report
2121

2222
[testenv:pep8]
23-
basepython = python3.12
23+
basepython = python3.13
2424
extras =
2525
pep8test
2626
commands =
2727
flake8 .
2828

2929
[testenv:docs]
30-
basepython = python3.12
30+
basepython = python3.13
3131
extras =
3232
docstest
3333
commands =
@@ -50,9 +50,9 @@ junit_family = xunit2
5050

5151
[gh-actions]
5252
python =
53-
3.7: py37
5453
3.8: py38
5554
3.9: py39
5655
3.10: py310
5756
3.11: py311
58-
3.12: py312, pep8, docs
57+
3.12: py312
58+
3.13: py313, pep8, docs

0 commit comments

Comments
 (0)