Skip to content

Commit cc7b17e

Browse files
Merge pull request #491 from Blueprints-org/490-feature-request-use-uv-in-the-workflows-instead-of-pip
2 parents 2a34729 + 3f44bc1 commit cc7b17e

File tree

4 files changed

+26
-20
lines changed

4 files changed

+26
-20
lines changed

.github/workflows/build_deploy.yaml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,21 @@ jobs:
2222

2323
steps:
2424
- uses: actions/checkout@v4
25+
26+
- name: install uv
27+
uses: astral-sh/setup-uv@v5
28+
2529
- name: Set up Python ${{ matrix.python-version }}
2630
uses: actions/setup-python@v5
2731
with:
2832
python-version: ${{ matrix.python-version }}
2933

3034
- name: Install dependencies
3135
run: |
32-
python -m pip install --upgrade pip
33-
pip install .[minimal_requirements]
34-
pip install .[dev]
35-
pip install build
36-
pip install types-shapely
36+
uv pip install .[minimal_requirements] --system
37+
uv pip install .[dev] --system
38+
uv pip install build --system
39+
uv pip install types-shapely --system
3740
3841
- name: Run checks with ruff
3942
run: |

.github/workflows/code_coverage.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,21 @@ jobs:
1515
steps:
1616
- uses: actions/checkout@v4
1717

18+
- name: install uv
19+
uses: astral-sh/setup-uv@v5
20+
1821
- name: Setup python ${{ matrix.python-version }}
1922
uses: actions/setup-python@v5
2023
with:
2124
python-version: ${{ matrix.python-version }}
2225

23-
- name: Update pip
24-
run: pip install --upgrade pip
25-
2626
- name: Install package
27-
run: python -m pip install -e .[dev]
27+
run: uv pip install -e .[dev] --system
2828

2929
- name: Generate coverage report
3030
run: |
31-
pip install pytest
32-
pip install pytest-cov
31+
uv pip install pytest --system
32+
uv pip install pytest-cov --system
3333
pytest --cov=./blueprints --cov-report=xml
3434
3535
- name: Upload coverage to Codecov

.github/workflows/minimum_code_coverage.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@ jobs:
1818
steps:
1919
- uses: actions/checkout@v4
2020

21+
- name: install uv
22+
uses: astral-sh/setup-uv@v5
23+
2124
- name: Setup python ${{ matrix.python-version }}
2225
uses: actions/setup-python@v5
2326
with:
2427
python-version: ${{ matrix.python-version }}
2528

26-
- name: Update pip
27-
run: pip install --upgrade pip
28-
2929
- name: Install package
30-
run: python -m pip install -e .[dev]
30+
run: uv pip install -e .[dev] --system
3131

3232
- name: Check code coverage is 100%
3333
run: |

.github/workflows/test.yaml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,20 @@ jobs:
1616
steps:
1717
- uses: actions/checkout@v4
1818

19+
- name: install uv
20+
uses: astral-sh/setup-uv@v5
21+
1922
- name: Set up Python ${{ matrix.python-version }}
2023
uses: actions/setup-python@v5
2124
with:
2225
python-version: ${{ matrix.python-version }}
2326

2427
- name: Install dependencies
28+
shell: bash
2529
run: |
26-
python -m pip install --upgrade pip
27-
pip install .
28-
pip install .[minimal_requirements]
29-
pip install .[dev]
30+
uv pip install . --system
31+
uv pip install .[minimal_requirements] --system
32+
uv pip install .[dev] --system
3033
3134
- name: Run checks with ruff
3235
run: |
@@ -42,4 +45,4 @@ jobs:
4245
4346
- name: Run tests with pytest
4447
run: |
45-
python -m pytest --pspec tests/ --verbose
48+
pytest --pspec tests/ --verbose

0 commit comments

Comments
 (0)