CI: use Python 3.10 as default version #242
Workflow file for this run
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
name: KaTeX pre-rendering | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
env: | |
node-version: '20.0' | |
python-version: '3.10' | |
sphinx-version: '5.*' | |
katex-version: '0.16.9' | |
strategy: | |
matrix: | |
os: [ ubuntu-latest, windows-latest, macOS-latest ] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js ${{ env.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ env.node-version }} | |
- name: Set up Python ${{ env.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ env.python-version }} | |
- name: Prepare KaTeX server | |
run: | | |
npm install --global katex@${{ env.katex-version }} | |
- name: Set up Sphinx ${{ env.sphinx-version }} | |
run: | | |
python -V | |
python -m pip install --upgrade pip | |
pip install "sphinx==${{ env.sphinx-version }}" | |
pip install "jinja2<3.1" | |
- name: Tests | |
run: | | |
katex -V | |
python -m sphinx docs docs/_build/ -b html -W -C -D master_doc=index -D extensions=sphinxcontrib.katex -D katex_prerender=1 |