Skip to content

Commit 8ed2d9b

Browse files
authored
Use uv for PPT self tests, and default for hydrated projects. (#551)
* Document more than just timeout * Use uv for PPT self tests, and default for hydrated projects.
1 parent db26444 commit 8ed2d9b

File tree

5 files changed

+20
-13
lines changed

5 files changed

+20
-13
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,18 @@ jobs:
1616

1717
steps:
1818
- uses: actions/checkout@main
19+
with:
20+
fetch-depth: 0
1921
- name: Set up Python ${{ matrix.python-version }}
2022
uses: actions/setup-python@main
2123
with:
2224
python-version: ${{ matrix.python-version }}
25+
- name: Install uv
26+
uses: astral-sh/setup-uv@v5
2327
- name: Install dependencies
2428
run: |
2529
sudo apt-get update
26-
python -m pip install --upgrade pip
27-
pip install -e .[dev]
30+
uv pip install --system -e .[dev]
2831
- name: Run unit tests with pytest / pytest-copie
2932
run: |
3033
git config --global init.defaultBranch main

.github/workflows/smoke-test.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,12 @@ jobs:
2828
uses: actions/setup-python@main
2929
with:
3030
python-version: ${{ matrix.python-version }}
31+
- name: Install uv
32+
uses: astral-sh/setup-uv@v5
3133
- name: Install dependencies
3234
run: |
3335
sudo apt-get update
34-
python -m pip install --upgrade pip
35-
pip install -e .[dev]
36+
uv pip install --system -e .[dev]
3637
- name: List dependencies
3738
run: |
3839
pip list

python-project-template/.github/workflows/pre-commit-ci.yml.jinja

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,13 @@ jobs:
2121
uses: actions/setup-python@v5
2222
with:
2323
python-version: '{{ py.pref(python_versions) }}'
24+
- name: Install uv
25+
uses: astral-sh/setup-uv@v5
2426
- name: Install dependencies
2527
run: |
2628
sudo apt-get update
27-
python -m pip install --upgrade pip
28-
pip install .[dev]
29-
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
29+
uv pip install --system .[dev]
30+
if [ -f requirements.txt ]; then uv pip install --system -r requirements.txt; fi
3031
- uses: pre-commit/[email protected]
3132
with:
3233
extra_args: --all-files --verbose

python-project-template/.github/workflows/smoke-test.yml.jinja

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,13 @@ jobs:
2828
uses: actions/setup-python@v5
2929
with:
3030
python-version: {% raw %}${{ matrix.python-version }}{% endraw %}
31+
- name: Install uv
32+
uses: astral-sh/setup-uv@v5
3133
- name: Install dependencies
3234
run: |
3335
sudo apt-get update
34-
python -m pip install --upgrade pip
35-
pip install -e .[dev]
36-
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
36+
uv pip install --system -e .[dev]
37+
if [ -f requirements.txt ]; then uv pip install --system -r requirements.txt; fi
3738
- name: List dependencies
3839
run: |
3940
pip list

python-project-template/.github/workflows/testing-and-coverage.yml.jinja

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,13 @@ jobs:
2424
uses: actions/setup-python@v5
2525
with:
2626
python-version: {% raw %}${{ matrix.python-version }}{% endraw %}
27+
- name: Install uv
28+
uses: astral-sh/setup-uv@v5
2729
- name: Install dependencies
2830
run: |
2931
sudo apt-get update
30-
python -m pip install --upgrade pip
31-
pip install -e .[dev]
32-
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
32+
uv pip install --system -e .[dev]
33+
if [ -f requirements.txt ]; then uv pip install --system -r requirements.txt; fi
3334
- name: Run unit tests with pytest
3435
run: |
3536
python -m pytest --cov={{package_name}} --cov-report=xml

0 commit comments

Comments
 (0)