-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
⬆️ Update sphinx v8 and test dependency versions (#212)
Support sphinx v8, drop v5
- Loading branch information
1 parent
a3bdfa3
commit 36d3378
Showing
8 changed files
with
55 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python 3.9 | ||
uses: actions/setup-python@v4 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.9 | ||
- uses: pre-commit/[email protected] | ||
|
@@ -29,30 +29,36 @@ jobs: | |
os: [ubuntu-latest] | ||
python-version: ["3.9", "3.10", "3.11", "3.12"] | ||
sphinx-version: ["~=7.0"] | ||
extras: ["testing"] | ||
include: | ||
- os: ubuntu-latest | ||
python-version: 3.9 | ||
sphinx-version: "~=5.0" | ||
- os: ubuntu-latest | ||
python-version: 3.9 | ||
python-version: "3.9" | ||
sphinx-version: "~=6.0" | ||
extras: "testing" | ||
- os: ubuntu-latest | ||
python-version: "3.10" | ||
sphinx-version: "~=8.0" | ||
extras: "testing-no-myst" # TODO myst does not yet support Sphinx 8.0 | ||
- os: windows-latest | ||
python-version: 3.9 | ||
python-version: "3.9" | ||
sphinx-version: "~=7.0" | ||
extras: "testing" | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
name: Tests (py${{ matrix.python-version }}, Sphinx${{ matrix.sphinx-version }}, on ${{ matrix.os }}) | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
cache: pip | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install --upgrade "sphinx${{ matrix.sphinx-version }}" -e .[testing] | ||
pip install --upgrade "sphinx${{ matrix.sphinx-version }}" -e .[${{ matrix.extras}}] | ||
- name: Run pytest | ||
run: | | ||
pytest --cov=sphinx_design --cov-report=xml --cov-report=term-missing | ||
|
@@ -76,7 +82,7 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python 3.9 | ||
uses: actions/setup-python@v4 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.9" | ||
cache: pip | ||
|
@@ -115,7 +121,7 @@ jobs: | |
- name: Checkout source | ||
uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.9 | ||
- name: install flit | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ version: 2 | |
build: | ||
os: ubuntu-22.04 | ||
tools: | ||
python: "3.9" | ||
python: "3.10" | ||
|
||
python: | ||
install: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ coverage: | |
status: | ||
project: | ||
default: | ||
target: 90% | ||
target: 85% | ||
threshold: 0.2% | ||
patch: | ||
default: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters