Skip to content
This repository was archived by the owner on Apr 9, 2025. It is now read-only.

Fix tests #289

Merged
merged 6 commits into from
Jun 17, 2024
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
13 changes: 11 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ commands:
type: string
sphinx-version:
type: string
default: "50,53,60,62,70,latest"
default: "50,53,60,62,70,73,latest"
steps:
- checkout
# Tox >=4 fails with `ValueError: py310-sphinx{18`
Expand All @@ -22,6 +22,8 @@ jobs:
steps:
- run-tox:
version: py38
# Sphinx >=7.2 requires Python 3.9+
sphinx-version: "50,53,60,62,70"

py39:
docker:
Expand All @@ -37,11 +39,18 @@ jobs:
- run-tox:
version: py310

py312:
docker:
- image: 'cimg/python:3.12'
steps:
- run-tox:
version: py312

workflows:
version: 2
test:
jobs:
- py38
- py39
- py310

- py312
2 changes: 2 additions & 0 deletions tests/test_htmltag.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import re
import sys
import pytest
import sphinx
import textwrap
Expand Down Expand Up @@ -156,6 +157,7 @@ def test_python_domain_intersphinx(app, status, warning):
assert chunk in content


@pytest.mark.skipif(sys.version_info >= (3, 12), reason="sphinxcontrib.bibtex is not compatible with Python 3.12")
@pytest.mark.sphinx(
srcdir=bibtexdomainsrcdir,
confoverrides={
Expand Down
7 changes: 4 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ isolated_build = True

envlist =
docs
py{38,39,310}-sphinx{50,53,60,62,70,latest}
py{38,39,310,312}-sphinx{50,53,60,62,70,73,latest}

[testenv]
deps =
Expand All @@ -16,8 +16,9 @@ deps =
sphinx53: sphinx~=5.3.0
sphinx60: sphinx~=6.0.0
sphinx62: sphinx~=6.2.0
sphinx73: sphinx~=7.0.0
sphinxlatest: sphinx
sphinx70: sphinx~=7.0.0
sphinx73: sphinx[test]~=7.3.0
sphinxlatest: sphinx[test]

commands = pytest {posargs}

Expand Down