-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into latex_xelatex_math
- Loading branch information
Showing
115 changed files
with
2,163 additions
and
793 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
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 |
---|---|---|
|
@@ -36,7 +36,6 @@ jobs: | |
- "3.10" | ||
- "3.11" | ||
- "3.12" | ||
- "3.13-dev" | ||
docutils: | ||
- "0.20" | ||
- "0.21" | ||
|
@@ -49,12 +48,43 @@ jobs: | |
- uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python }} | ||
uses: actions/setup-python@v5 | ||
if: "!endsWith(matrix.python, '-dev')" | ||
with: | ||
python-version: ${{ matrix.python }} | ||
- name: Check Python version | ||
run: python --version --version | ||
- name: Install graphviz | ||
run: sudo apt-get install graphviz | ||
- name: Install uv | ||
run: > | ||
curl --no-progress-meter --location --fail | ||
--proto '=https' --tlsv1.2 | ||
"https://astral.sh/uv/install.sh" | ||
| sh | ||
- name: Install dependencies | ||
run: uv pip install .[test] | ||
- name: Install Docutils ${{ matrix.docutils }} | ||
run: uv pip install --upgrade "docutils~=${{ matrix.docutils }}.0" | ||
- name: Test with pytest | ||
run: python -m pytest -vv --durations 25 | ||
env: | ||
PYTHONWARNINGS: "error" # treat all warnings as errors | ||
|
||
deadsnakes: | ||
runs-on: ubuntu-latest | ||
name: Python ${{ matrix.python }} (Docutils ${{ matrix.docutils }}) | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python: | ||
- "3.13-dev" | ||
docutils: | ||
- "0.20" | ||
- "0.21" | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python }} (deadsnakes) | ||
uses: deadsnakes/[email protected] | ||
if: "endsWith(matrix.python, '-dev')" | ||
with: | ||
python-version: ${{ matrix.python }} | ||
- name: Check Python version | ||
|
@@ -84,10 +114,14 @@ jobs: | |
python-version: "3" | ||
- name: Check Python version | ||
run: python --version --version | ||
- name: Install graphviz | ||
run: choco install --no-progress graphviz | ||
- name: Install uv | ||
run: > | ||
Invoke-WebRequest -Uri "https://astral.sh/uv/install.ps1" | ||
| Invoke-Expression | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install .[test] | ||
run: uv pip install .[test] | ||
- name: Test with pytest | ||
run: python -m pytest -vv --durations 25 | ||
env: | ||
|
@@ -100,9 +134,10 @@ jobs: | |
steps: | ||
- name: Install epubcheck | ||
run: | | ||
EPUBCHECK_VERSION="5.1.0" | ||
mkdir /tmp/epubcheck && cd /tmp/epubcheck | ||
wget https://github.com/w3c/epubcheck/releases/download/v5.1.0/epubcheck-5.1.0.zip | ||
unzip epubcheck-5.1.0.zip | ||
wget --no-verbose https://github.com/w3c/epubcheck/releases/download/v${EPUBCHECK_VERSION}/epubcheck-${EPUBCHECK_VERSION}.zip | ||
unzip epubcheck-${EPUBCHECK_VERSION}.zip | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
|
@@ -112,12 +147,16 @@ jobs: | |
run: python --version --version | ||
- name: Install graphviz | ||
run: sudo apt-get install graphviz | ||
- name: Install uv | ||
run: > | ||
curl --no-progress-meter --location --fail | ||
--proto '=https' --tlsv1.2 | ||
"https://astral.sh/uv/install.sh" | ||
| sh | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install .[test] | ||
run: uv pip install .[test] | ||
- name: Install Docutils' HEAD | ||
run: python -m pip install git+https://repo.or.cz/docutils.git\#subdirectory=docutils | ||
run: uv pip install "docutils @ git+https://repo.or.cz/docutils.git#subdirectory=docutils" | ||
- name: Test with pytest | ||
run: python -m pytest -vv | ||
env: | ||
|
@@ -140,13 +179,10 @@ jobs: | |
- name: Install graphviz | ||
run: sudo apt-get install graphviz | ||
- name: Install uv | ||
run: > | ||
curl | ||
--location | ||
--fail | ||
--proto '=https' --tlsv1.2 | ||
--silent --show-error | ||
https://astral.sh/uv/install.sh | ||
run: > | ||
curl --no-progress-meter --location --fail | ||
--proto '=https' --tlsv1.2 | ||
"https://astral.sh/uv/install.sh" | ||
| sh | ||
- name: Install dependencies | ||
run: | | ||
|
@@ -171,10 +207,14 @@ jobs: | |
python-version: "3" | ||
- name: Check Python version | ||
run: python --version --version | ||
- name: Install uv | ||
run: > | ||
curl --no-progress-meter --location --fail | ||
--proto '=https' --tlsv1.2 | ||
"https://astral.sh/uv/install.sh" | ||
| sh | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install .[test] | ||
run: uv pip install .[test] | ||
- name: Test with pytest | ||
run: python -m pytest -vv --durations 25 | ||
env: | ||
|
@@ -196,10 +236,14 @@ jobs: | |
run: python --version --version | ||
- name: Install graphviz | ||
run: sudo apt-get install graphviz | ||
- name: Install uv | ||
run: > | ||
curl --no-progress-meter --location --fail | ||
--proto '=https' --tlsv1.2 | ||
"https://astral.sh/uv/install.sh" | ||
| sh | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install .[test] pytest-cov | ||
run: uv pip install .[test] pytest-cov | ||
- name: Test with pytest | ||
run: python -m pytest -vv --cov . --cov-append --cov-config pyproject.toml | ||
env: | ||
|
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.