Skip to content

Commit 1d61661

Browse files
authored
Merge branch 'master' into patch-1
2 parents 217ada0 + 9364edb commit 1d61661

30 files changed

Lines changed: 874 additions & 164 deletions
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Copilot Setup Steps
2+
3+
# Automatically run the setup steps when they are changed to allow for easy validation, and
4+
# allow manual testing through the repository's "Actions" tab
5+
on:
6+
workflow_dispatch:
7+
push:
8+
paths:
9+
- .github/workflows/copilot-setup-steps.yml
10+
pull_request:
11+
paths:
12+
- .github/workflows/copilot-setup-steps.yml
13+
14+
jobs:
15+
# The job MUST be called `copilot-setup-steps` or it will not be picked up by Copilot.
16+
copilot-setup-steps:
17+
runs-on: ubuntu-latest
18+
19+
# Set the permissions to the lowest permissions possible needed for your steps.
20+
# Copilot will be given its own token for its operations.
21+
permissions:
22+
contents: read
23+
24+
# You can define any steps you want, and they will run before the agent starts.
25+
# If you do not check out your code, Copilot will do this for you.
26+
steps:
27+
- name: Checkout code
28+
uses: actions/checkout@v6
29+
30+
- name: Set up Python
31+
uses: actions/setup-python@v5
32+
with:
33+
python-version: "3.11"
34+
cache: pip
35+
36+
- name: Install uv
37+
run: pip install uv
38+
39+
- name: Install pre-commit and pre-commit-uv
40+
run: pip install pre-commit pre-commit-uv
41+
42+
- name: Install tox and tox-uv
43+
run: pip install tox tox-uv

.github/workflows/tests.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,15 @@ jobs:
2626
fail-fast: false
2727
matrix:
2828
python-version: ["3.11", "3.12", "3.13", "3.14"]
29-
sphinx: [">=8,<9"]
29+
sphinx: [">=8,<9", ">=9,<10"]
3030
os: [ubuntu-latest]
3131
include:
32-
# - os: ubuntu-latest
33-
# python-version: "3.11"
34-
# sphinx: ">=7,<8"
3532
- os: windows-latest
3633
python-version: "3.11"
3734
sphinx: ">=8,<9"
3835
- os: windows-latest
3936
python-version: "3.14"
40-
sphinx: ">=8,<9"
37+
sphinx: ">=9,<10"
4138

4239
runs-on: ${{ matrix.os }}
4340

@@ -55,9 +52,9 @@ jobs:
5552
python -m pip install --upgrade pip
5653
pip install -e ".[linkify,testing]" "sphinx${{ matrix.sphinx }}"
5754
- name: Run pytest
58-
run: |
59-
pytest --cov=myst_parser --cov-report=xml --cov-report=term-missing
60-
coverage xml
55+
run: pytest --cov=myst_parser --cov-report=xml --cov-report=term-missing
56+
- name: Create coverage report
57+
run: coverage xml
6158
# TODO there is currently problem with this action and pull-requests from external forks
6259
# - name: Upload to Codecov
6360
# if: github.repository == 'executablebooks/MyST-Parser' && matrix.python-version == 3.11 && matrix.os == 'ubuntu-latest'
@@ -77,7 +74,7 @@ jobs:
7774
strategy:
7875
fail-fast: false
7976
matrix:
80-
docutils-version: ["0.20", "0.21"]
77+
docutils-version: ["0.20", "0.21", "0.22"]
8178

8279
steps:
8380
- name: Checkout source

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ repos:
2121
- id: trailing-whitespace
2222

2323
- repo: https://github.com/astral-sh/ruff-pre-commit
24-
rev: v0.14.7
24+
rev: v0.14.11
2525
hooks:
2626
- id: ruff-check
2727
args: [--fix]
2828
- id: ruff-format
2929

3030
- repo: https://github.com/pre-commit/mirrors-mypy
31-
rev: v1.19.0
31+
rev: v1.19.1
3232
hooks:
3333
- id: mypy
3434
args: [--config-file=pyproject.toml]

0 commit comments

Comments
 (0)