Skip to content

Commit 7dedcfa

Browse files
adding CI version pins to readme_snippet workflow (#1755)
1 parent fb79136 commit 7dedcfa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/readme_snippets.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- uses: actions/setup-python@v5.0.0
2424
with:
2525
python-version: "3.10"
26-
- run: python -m pip install $PIP_INSTALL_ARGS -e .
26+
- run: python -m pip install $PIP_INSTALL_ARGS -e .[CI_version_pins]
2727
- run: python -m pip install $PIP_INSTALL_ARGS pytest-codeblocks pytest
2828
- run: |
2929
python -c "import os,pytest_codeblocks; code=pytest_codeblocks.extract_from_file('docs/markdown/pysdm_landing.md'); f=open('readme.py', 'w', encoding='utf-8'); f.write('# coding: utf-8'+os.linesep); f.writelines(block.code for block in code if block.syntax=='Python'); f.close()"
@@ -48,7 +48,7 @@ jobs:
4848
- uses: actions/setup-python@v5.0.0
4949
with:
5050
python-version: "3.10"
51-
- run: pip install -e .
51+
- run: pip install -e .[CI_version_pins]
5252
- run: pip install pytest-codeblocks pytest
5353
- run: python -c "import pytest_codeblocks; code=pytest_codeblocks.extract_from_file('docs/markdown/pysdm_landing.md'); f=open('readme.jl', 'w'); f.writelines(block.code for block in code if block.syntax=='Julia'); f.close()"
5454
- uses: julia-actions/setup-julia@v2
@@ -68,7 +68,7 @@ jobs:
6868

6969
- run: echo NUMBA_THREADING_LAYER=workqueue >> $GITHUB_ENV
7070

71-
- run: pip install -e .
71+
- run: pip install -e .[CI_version_pins]
7272
- run: pip install pytest-codeblocks pytest
7373
- run: python -c "import pytest_codeblocks; code=pytest_codeblocks.extract_from_file('docs/markdown/pysdm_landing.md'); f=open('readme.m', 'w'); f.writelines(block.code for block in code if block.syntax=='Matlab'); f.close()"
7474
- run: cat -n readme.m

0 commit comments

Comments
 (0)