Skip to content

Commit

Permalink
CI: use Python 3.10 as default version
Browse files Browse the repository at this point in the history
  • Loading branch information
hagenw committed Oct 12, 2023
1 parent 36e50bc commit 7f1100d
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/katex.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:

runs-on: ${{ matrix.os }}
env:
node-version: 16.0
python-version: 3.8
node-version: 20.0
python-version: 3.10
sphinx-version: '3.*'
katex-version: '0.16.0'
katex-version: '0.16.9'
strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macOS-latest ]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linkcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
env:
sphinx-version: '3.*'
python-version: 3.8
python-version: '3.10'

steps:
- uses: actions/checkout@v3
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Set up Python 3.8
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.8'
python-version: '3.10'

- name: Install pre-commit hooks
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/os.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ${{ matrix.os }}
env:
sphinx-version: '3.*'
python-version: 3.8
python-version: 3.10
strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macOS-latest ]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
python-version: '3.10'

- name: Install dependencies
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sphinx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:

runs-on: ubuntu-latest
env:
python-version: 3.8
python-version: '3.10'
strategy:
matrix:
sphinx-version: [ 1.6.7, 1.8.6, 2.4.5, 3.5.4, 4.5.0 ]
Expand Down
6 changes: 6 additions & 0 deletions update-katex-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,13 @@ echo "Updating auto-render.min.js"
curl -s ${KATEX_URL}/contrib/auto-render.min.js --output sphinxcontrib/auto-render.min.js

# Update Python file
echo "Updating katex.py"
sed -i "/katex_version = '${CURRENT_VERSION}'/c\\katex_version = '${NEW_VERSION}'" sphinxcontrib/katex.py

# Update README
echo "Updating README.rst"
sed -i "s/${CURRENT_VERSION}/${NEW_VERSION}/" README.rst

# Update github Action for pre-rendering
echo "Updating .github/workflows/katex.yml"
sed -i "s/katex-version: '${CURRENT_VERSION}'/katex-version: '${NEW_VERSION}'/" .github/workflows/katex.yml

0 comments on commit 7f1100d

Please sign in to comment.