Skip to content

Commit b1ab49f

Browse files
committed
CI: avoid windows error by relying on available pip; print out installed versions to help future debugging
1 parent 41beabd commit b1ab49f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,12 @@ jobs:
6161
- name: Install myst-nb with Sphinx ${{ matrix.sphinx }}
6262
shell: bash
6363
run: |
64-
pip install --upgrade pip
6564
# Temporary: for python 3.13 we need the nightly pyarrow wheels
6665
if [[ ${{ matrix.python-version }} == '3.13' ]] ; then
6766
PIP_EXTRA_INDEX_URL=https://pypi.anaconda.org/scientific-python-nightly-wheels/simple pip install --pre pyarrow
6867
fi
6968
pip install --upgrade "Sphinx${{ matrix.sphinx }}" "myst-parser${{ matrix.myst-parser }}" -e .[testing]
69+
pip freeze
7070
7171
- name: Run pytest
7272
run: pytest --durations=10
@@ -84,8 +84,8 @@ jobs:
8484
cache: pip
8585
- name: Install dependencies
8686
run: |
87-
pip install --upgrade pip
8887
pip install -e .[testing]
88+
pip freeze
8989
9090
- name: Run pytest
9191
run: pytest --durations=10 --cov=myst_nb --cov-report=xml --cov-report=term-missing

tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ allowlist_externals =
3535
echo
3636
rm
3737
commands =
38+
pip freeze
3839
clean: rm -rf docs/_build
3940
sphinx-build {posargs} -nW --keep-going -b {env:BUILDER} docs/ docs/_build/{env:BUILDER}
4041
commands_post = echo "open file://{toxinidir}/docs/_build/{env:BUILDER}/index.html"

0 commit comments

Comments
 (0)