Skip to content

Commit a5bd00b

Browse files
committed
CI: Use uv across the board
1 parent 8b6a7ae commit a5bd00b

12 files changed

Lines changed: 29 additions & 117 deletions

.github/workflows/cratedb-cloud.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ jobs:
3434
env:
3535
OS: ${{ matrix.os }}
3636
PYTHON: ${{ matrix.python-version }}
37-
UV_SYSTEM_PYTHON: true
3837

3938
# https://docs.github.com/en/actions/using-containerized-services/about-service-containers
4039
services:
@@ -50,25 +49,21 @@ jobs:
5049
- name: Acquire sources
5150
uses: actions/checkout@v6
5251

53-
- name: Install Python
54-
uses: actions/setup-python@v6
55-
with:
56-
python-version: ${{ matrix.python-version }}
57-
5852
- name: Install uv
5953
uses: astral-sh/setup-uv@v7
6054
with:
61-
cache-dependency-glob: |
62-
pyproject.toml
55+
activate-environment: 'true'
6356
cache-suffix: ${{ matrix.python-version }}
6457
enable-cache: true
65-
version: "latest"
58+
python-version: ${{ matrix.python-version }}
6659

6760
- name: Set up project
6861
run: |
6962
7063
# Install sponge.
7164
sudo apt-get install moreutils
65+
# More
66+
uv pip install pip
7267
7368
# Install package in editable mode.
7469
uv pip install --editable='.[full,test,develop]'

.github/workflows/dynamodb.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ jobs:
5050
OS: ${{ matrix.os }}
5151
PYTHON: ${{ matrix.python-version }}
5252
LOCALSTACK_VERSION: ${{ matrix.localstack-version }}
53-
UV_SYSTEM_PYTHON: true
5453
# Do not tear down Testcontainers
5554
TC_KEEPALIVE: true
5655

@@ -64,19 +63,13 @@ jobs:
6463
- name: Acquire sources
6564
uses: actions/checkout@v6
6665

67-
- name: Install Python
68-
uses: actions/setup-python@v6
69-
with:
70-
python-version: ${{ matrix.python-version }}
71-
7266
- name: Install uv
7367
uses: astral-sh/setup-uv@v7
7468
with:
75-
cache-dependency-glob: |
76-
pyproject.toml
69+
activate-environment: 'true'
7770
cache-suffix: ${{ matrix.python-version }}
7871
enable-cache: true
79-
version: "latest"
72+
python-version: ${{ matrix.python-version }}
8073

8174
- name: Set up project
8275
run: |

.github/workflows/influxdb.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ jobs:
5656
OS: ${{ matrix.os }}
5757
PYTHON: ${{ matrix.python-version }}
5858
INFLUXDB_VERSION: ${{ matrix.influxdb-version }}
59-
UV_SYSTEM_PYTHON: true
6059
# Do not tear down Testcontainers
6160
TC_KEEPALIVE: true
6261

@@ -70,19 +69,13 @@ jobs:
7069
- name: Acquire sources
7170
uses: actions/checkout@v6
7271

73-
- name: Install Python
74-
uses: actions/setup-python@v6
75-
with:
76-
python-version: ${{ matrix.python-version }}
77-
7872
- name: Install uv
7973
uses: astral-sh/setup-uv@v7
8074
with:
81-
cache-dependency-glob: |
82-
pyproject.toml
75+
activate-environment: 'true'
8376
cache-suffix: ${{ matrix.python-version }}
8477
enable-cache: true
85-
version: "latest"
78+
python-version: ${{ matrix.python-version }}
8679

8780
- name: Set up project
8881
run: |

.github/workflows/kinesis.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ jobs:
4747
env:
4848
OS: ${{ matrix.os }}
4949
PYTHON: ${{ matrix.python-version }}
50-
UV_SYSTEM_PYTHON: true
5150
# Do not tear down Testcontainers
5251
TC_KEEPALIVE: true
5352

@@ -67,19 +66,13 @@ jobs:
6766
- name: Acquire sources
6867
uses: actions/checkout@v6
6968

70-
- name: Install Python
71-
uses: actions/setup-python@v6
72-
with:
73-
python-version: ${{ matrix.python-version }}
74-
7569
- name: Install uv
7670
uses: astral-sh/setup-uv@v7
7771
with:
78-
cache-dependency-glob: |
79-
pyproject.toml
72+
activate-environment: 'true'
8073
cache-suffix: ${{ matrix.python-version }}
8174
enable-cache: true
82-
version: "latest"
75+
python-version: ${{ matrix.python-version }}
8376

8477
- name: Set up project
8578
run: |

.github/workflows/main.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ jobs:
3535
env:
3636
OS: ${{ matrix.os }}
3737
PYTHON: ${{ matrix.python-version }}
38-
UV_SYSTEM_PYTHON: true
3938
# Do not tear down Testcontainers
4039
TC_KEEPALIVE: true
4140

@@ -53,25 +52,21 @@ jobs:
5352
- name: Acquire sources
5453
uses: actions/checkout@v6
5554

56-
- name: Install Python
57-
uses: actions/setup-python@v6
58-
with:
59-
python-version: ${{ matrix.python-version }}
60-
6155
- name: Install uv
6256
uses: astral-sh/setup-uv@v7
6357
with:
64-
cache-dependency-glob: |
65-
pyproject.toml
58+
activate-environment: 'true'
6659
cache-suffix: ${{ matrix.python-version }}
6760
enable-cache: true
68-
version: "latest"
61+
python-version: ${{ matrix.python-version }}
6962

7063
- name: Set up project
7164
run: |
7265
7366
# Install sponge.
7467
sudo apt-get install moreutils
68+
# More
69+
uv pip install pip
7570
7671
# Install package in editable mode.
7772
uv pip install --editable='.[full,test,develop]'

.github/workflows/mongodb.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ jobs:
5858
OS: ${{ matrix.os }}
5959
PYTHON: ${{ matrix.python-version }}
6060
MONGODB_VERSION: ${{ matrix.mongodb-version }}
61-
UV_SYSTEM_PYTHON: true
6261
# Do not tear down Testcontainers
6362
TC_KEEPALIVE: true
6463

@@ -68,19 +67,13 @@ jobs:
6867
- name: Acquire sources
6968
uses: actions/checkout@v6
7069

71-
- name: Install Python
72-
uses: actions/setup-python@v6
73-
with:
74-
python-version: ${{ matrix.python-version }}
75-
7670
- name: Install uv
7771
uses: astral-sh/setup-uv@v7
7872
with:
79-
cache-dependency-glob: |
80-
pyproject.toml
73+
activate-environment: 'true'
8174
cache-suffix: ${{ matrix.python-version }}
8275
enable-cache: true
83-
version: "latest"
76+
python-version: ${{ matrix.python-version }}
8477

8578
- name: Set up project
8679
run: |

.github/workflows/postgresql.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ jobs:
5555
PYTHON: ${{ matrix.python-version }}
5656
CRATEDB_VERSION: ${{ matrix.cratedb-version }}
5757
POSTGRESQL_VERSION: ${{ matrix.postgresql-version }}
58-
UV_SYSTEM_PYTHON: true
5958
TC_KEEPALIVE: true # Do not tear down Testcontainers
6059
INGESTR_DISABLE_TELEMETRY: true
6160

@@ -84,19 +83,13 @@ jobs:
8483
- name: Acquire sources
8584
uses: actions/checkout@v6
8685

87-
- name: Install Python
88-
uses: actions/setup-python@v6
89-
with:
90-
python-version: ${{ matrix.python-version }}
91-
9286
- name: Install uv
9387
uses: astral-sh/setup-uv@v7
9488
with:
95-
cache-dependency-glob: |
96-
pyproject.toml
89+
activate-environment: 'true'
9790
cache-suffix: ${{ matrix.python-version }}
9891
enable-cache: true
99-
version: "latest"
92+
python-version: ${{ matrix.python-version }}
10093

10194
- name: Set up project
10295
run: |

.github/workflows/pymongo.yml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ jobs:
4545
env:
4646
OS: ${{ matrix.os }}
4747
PYTHON: ${{ matrix.python-version }}
48-
UV_SYSTEM_PYTHON: true
4948
# Do not tear down Testcontainers
5049
TC_KEEPALIVE: true
5150

@@ -63,24 +62,18 @@ jobs:
6362
- name: Acquire sources
6463
uses: actions/checkout@v6
6564

66-
- name: Install Python
67-
uses: actions/setup-python@v6
68-
with:
69-
python-version: ${{ matrix.python-version }}
70-
7165
- name: Install uv
7266
uses: astral-sh/setup-uv@v7
7367
with:
74-
cache-dependency-glob: |
75-
pyproject.toml
68+
activate-environment: 'true'
7669
cache-suffix: ${{ matrix.python-version }}
7770
enable-cache: true
78-
version: "latest"
71+
python-version: ${{ matrix.python-version }}
7972

8073
- name: Set up project
8174
run: |
8275
# Install package in editable mode.
83-
uv pip install --editable=.[pymongo,test]
76+
uv pip install --editable='.[pymongo,test]'
8477
8578
- name: Run software tests
8679
run: |

.github/workflows/release-app.yml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,6 @@ jobs:
3939
# - https://arm-software.github.io/AVH/main/infrastructure/html/avh_gh.html
4040
# - via: https://github.com/actions/partner-runner-images
4141

42-
env:
43-
UV_SYSTEM_PYTHON: true
44-
4542
steps:
4643

4744
- name: Acquire sources
@@ -50,22 +47,15 @@ jobs:
5047
fetch-depth: 0
5148
fetch-tags: true
5249

53-
- name: Install Python
54-
uses: actions/setup-python@v6
55-
with:
56-
python-version: '3.13'
57-
5850
- name: Install uv
5951
uses: astral-sh/setup-uv@v7
6052
with:
61-
cache-dependency-glob: |
62-
pyproject.toml
53+
activate-environment: 'true'
6354
enable-cache: true
64-
version: "latest"
55+
python-version: '3.13'
6556

6657
- name: Set up project
6758
run: |
68-
6959
# Install package in editable mode.
7060
uv pip install --editable='.[cfr,release-cfr]'
7161

.github/workflows/release-oci-full.yml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -37,28 +37,19 @@ jobs:
3737
build-and-test:
3838
runs-on: ubuntu-latest
3939

40-
env:
41-
UV_SYSTEM_PYTHON: true
42-
4340
steps:
4441
- name: Acquire sources
4542
uses: actions/checkout@v6
4643
with:
4744
fetch-depth: 0
4845
fetch-tags: true
4946

50-
- name: Install Python
51-
uses: actions/setup-python@v6
52-
with:
53-
python-version: '3.14'
54-
5547
- name: Install uv
5648
uses: astral-sh/setup-uv@v7
5749
with:
58-
cache-dependency-glob: |
59-
pyproject.toml
50+
activate-environment: 'true'
6051
enable-cache: true
61-
version: "latest"
52+
python-version: '3.14'
6253

6354
- name: Build wheel package
6455
run: |

0 commit comments

Comments
 (0)