Skip to content

Commit e4430de

Browse files
authored
Merge pull request #557 from lincc-frameworks/u/olynn/make-ci-dep-installation-order-match
Make CI dependency installation order match between workflows
2 parents 699de35 + be19743 commit e4430de

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

python-project-template/.github/workflows/{% if include_docs %}build-documentation.yml{% endif %}.jinja

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,14 @@ jobs:
2525
uses: actions/setup-python@v5
2626
with:
2727
python-version: '{{ py.pref(python_versions) }}'
28+
- name: Install uv
29+
uses: astral-sh/setup-uv@v7
2830
- name: Install dependencies
2931
run: |
3032
sudo apt-get update
31-
python -m pip install --upgrade pip
32-
if [ -f docs/requirements.txt ]; then pip install -r docs/requirements.txt; fi
33-
pip install .
33+
uv pip install --system -e .
34+
if [ -f docs/requirements.txt ]; then uv pip install -r docs/requirements.txt; fi
35+
if [ -f requirements.txt ]; then uv pip install --system -r requirements.txt; fi
3436
{%- if include_notebooks %}
3537
- name: Install notebook requirements
3638
run: |

python-project-template/{% if include_docs %}.readthedocs.yml{% endif %}.jinja

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,6 @@ sphinx:
1919
python:
2020
install:
2121
- requirements: docs/requirements.txt
22+
- requirements: requirements.txt
2223
- method: pip
2324
path: .

0 commit comments

Comments
 (0)