Merge branch 'pytest-dev:main' into main
This commit is contained in:
commit
98dafc1498
|
@ -171,33 +171,6 @@ jobs:
|
||||||
CODECOV_NAME: ${{ matrix.name }}
|
CODECOV_NAME: ${{ matrix.name }}
|
||||||
run: bash scripts/upload-coverage.sh -F GHA,${{ runner.os }}
|
run: bash scripts/upload-coverage.sh -F GHA,${{ runner.os }}
|
||||||
|
|
||||||
linting:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
persist-credentials: false
|
|
||||||
|
|
||||||
- uses: actions/setup-python@v2
|
|
||||||
|
|
||||||
- name: set PY
|
|
||||||
run: echo "name=PY::$(python -c 'import hashlib, sys;print(hashlib.sha256(sys.version.encode()+sys.executable.encode()).hexdigest())')" >> $GITHUB_ENV
|
|
||||||
|
|
||||||
- uses: actions/cache@v2
|
|
||||||
with:
|
|
||||||
path: ~/.cache/pre-commit
|
|
||||||
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
|
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
run: |
|
|
||||||
python -m pip install --upgrade pip
|
|
||||||
pip install tox
|
|
||||||
|
|
||||||
- run: tox -e linting
|
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') && github.repository == 'pytest-dev/pytest'
|
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') && github.repository == 'pytest-dev/pytest'
|
||||||
|
|
||||||
|
|
|
@ -1,13 +1,15 @@
|
||||||
version: 2
|
version: 2
|
||||||
|
|
||||||
python:
|
python:
|
||||||
version: 3.7
|
|
||||||
install:
|
install:
|
||||||
- requirements: doc/en/requirements.txt
|
- requirements: doc/en/requirements.txt
|
||||||
- method: pip
|
- method: pip
|
||||||
path: .
|
path: .
|
||||||
|
|
||||||
build:
|
build:
|
||||||
|
os: ubuntu-20.04
|
||||||
|
tools:
|
||||||
|
python: "3.9"
|
||||||
apt_packages:
|
apt_packages:
|
||||||
- inkscape
|
- inkscape
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Upgrade readthedocs configuration to use a [newer Ubuntu version](https://blog.readthedocs.com/new-build-specification/) with better unicode support for PDF docs.
|
|
@ -19,6 +19,7 @@ import ast
|
||||||
import os
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
import sys
|
import sys
|
||||||
|
from textwrap import dedent
|
||||||
from typing import List
|
from typing import List
|
||||||
from typing import TYPE_CHECKING
|
from typing import TYPE_CHECKING
|
||||||
|
|
||||||
|
@ -39,9 +40,22 @@ autodoc_member_order = "bysource"
|
||||||
autodoc_typehints = "description"
|
autodoc_typehints = "description"
|
||||||
todo_include_todos = 1
|
todo_include_todos = 1
|
||||||
|
|
||||||
# Use a different latex engine due to possible Unicode characters in the documentation:
|
latex_engine = "lualatex"
|
||||||
# https://docs.readthedocs.io/en/stable/guides/pdf-non-ascii-languages.html
|
|
||||||
latex_engine = "xelatex"
|
latex_elements = {
|
||||||
|
"preamble": dedent(
|
||||||
|
r"""
|
||||||
|
\directlua{
|
||||||
|
luaotfload.add_fallback("fallbacks", {
|
||||||
|
"Noto Serif CJK SC:style=Regular;",
|
||||||
|
"Symbola:Style=Regular;"
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
\setmainfont{FreeSerif}[RawFeature={fallback=fallbacks}]
|
||||||
|
"""
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
# -- General configuration -----------------------------------------------------
|
# -- General configuration -----------------------------------------------------
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue