-
Notifications
You must be signed in to change notification settings - Fork 201
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
61 changed files
with
416 additions
and
164 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
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,52 +16,56 @@ jobs: | |
pre-commit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.9 | ||
python-version: 3.11 | ||
- uses: pre-commit/[email protected] | ||
|
||
tests: | ||
continue-on-error: ${{ matrix.experimental || false }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest] | ||
python-version: [3.7, 3.8, 3.9] | ||
python-version: ["3.9", "3.10", "3.11"] | ||
# Only test the latest major release of Sphinx because otherwise we need to | ||
# keep multiple versions of regression tests on file and this creates lots of | ||
# noise in the tests. | ||
sphinx: [">=6,<7"] | ||
sphinx: ["~=5.0","~=6.0","~=7.0"] | ||
include: | ||
- os: windows-latest | ||
python-version: 3.9 | ||
sphinx: ">=6,<7" | ||
# Python 3.12 is broken on windows builds until the following PR is released: | ||
# https://github.com/pradyunsg/sphinx-theme-builder/pull/47 | ||
python-version: 3.11 | ||
# Windows pulling in dependencies fails | ||
experimental: true | ||
- os: macos-latest | ||
python-version: 3.9 | ||
sphinx: ">=6,<7" | ||
python-version: 3.x | ||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python ${{ matrix.python-version }} and Sphinx ${{ matrix.sphinx }} | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
cache: "pip" | ||
cache-dependency-path: "pyproject.toml" | ||
|
||
- name: Install dependencies | ||
- name: Install dependencies with Sphinx ${{ matrix.sphinx }} | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install -e .[test] | ||
python -m pip install --upgrade "sphinx${{matrix.sphinx}}" -e .[test] --pre | ||
- name: Run pytest | ||
run: > | ||
pytest --durations=10 --cov=sphinx_book_theme --cov-report=xml --cov-report=term-missing | ||
# Only upload to codecov on pull requests so that we don't trigger rate limit blocks | ||
- name: Upload to Codecov | ||
if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.7 && github.repository == 'executablebooks/sphinx-book-theme' && github.event_name == 'pull_request' | ||
uses: codecov/[email protected].1 | ||
if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.9 && github.repository == 'executablebooks/sphinx-book-theme' && github.event_name == 'pull_request' | ||
uses: codecov/[email protected].4 | ||
with: | ||
name: ebp-sbt-pytests-py3.7 | ||
flags: pytests | ||
|
@@ -73,11 +77,11 @@ jobs: | |
runs-on: ubuntu-latest | ||
name: Build and Audit Documentation | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.7' | ||
python-version: '3.9' | ||
cache: "pip" | ||
cache-dependency-path: "pyproject.toml" | ||
- name: Install dependencies | ||
|
@@ -106,7 +110,7 @@ jobs: | |
assert len(unexpected) == 0 | ||
- name: Audit with Lighthouse | ||
uses: treosh/lighthouse-ci-action@9.3.1 | ||
uses: treosh/lighthouse-ci-action@10.1.0 | ||
with: | ||
configPath: ".github/workflows/lighthouserc.json" | ||
temporaryPublicStorage: true | ||
|
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 |
---|---|---|
@@ -1,10 +1,15 @@ | ||
version: 2 | ||
# Set the OS, Python version and other tools you might need | ||
|
||
build: | ||
os: ubuntu-22.04 | ||
tools: | ||
python: "3.10" | ||
|
||
python: | ||
version: 3 | ||
install: | ||
- method: pip | ||
path: .[doc] | ||
path: ".[doc]" | ||
|
||
sphinx: | ||
builder: html |
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
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
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
Oops, something went wrong.