Skip to content

Commit a6e0e12

Browse files
committed
CI: Fix pip install problem with Pygments version
Recently `python setup.py build_sphinx` started failing with: pkg_resources.VersionConflict: (Pygments 2.3.1 (/usr/lib/python3/dist-packages), Requirement.parse('Pygments>=2.12')) The reason is that `doc8` 1.0.0 installs `Pygments` 2.3.1, then `Sphinx` 5.3.0 needs `Pygments` ≥ 2.12. The easiest fix is to change the install order.
1 parent eb7b7ca commit a6e0e12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ jobs:
2121
- name: Set up Python
2222
uses: actions/setup-python@v4
2323
- run:
24-
python -m pip install flake8 flake8-import-order doc8 sphinx
25-
rstcheck[sphinx]
24+
python -m pip install flake8 flake8-import-order sphinx
25+
rstcheck[sphinx] doc8
2626
- run: python -m pip install .
2727
- run: flake8 .
2828
- run: doc8 $(git ls-files '*.rst')

0 commit comments

Comments
 (0)