Skip to content

Commit 2755f5a

Browse files
committed
CI: Use uv across the board
1 parent 517bb42 commit 2755f5a

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
@@ -52,7 +52,6 @@ jobs:
5252
OS: ${{ matrix.os }}
5353
PYTHON: ${{ matrix.python-version }}
5454
LOCALSTACK_VERSION: ${{ matrix.localstack-version }}
55-
UV_SYSTEM_PYTHON: true
5655
# Do not tear down Testcontainers
5756
TC_KEEPALIVE: true
5857

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

69-
- name: Install Python
70-
uses: actions/setup-python@v6
71-
with:
72-
python-version: ${{ matrix.python-version }}
73-
7468
- name: Install uv
7569
uses: astral-sh/setup-uv@v7
7670
with:
77-
cache-dependency-glob: |
78-
pyproject.toml
71+
activate-environment: 'true'
7972
cache-suffix: ${{ matrix.python-version }}
8073
enable-cache: true
81-
version: "latest"
74+
python-version: ${{ matrix.python-version }}
8275

8376
- name: Set up project
8477
run: |

.github/workflows/influxdb.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
INFLUXDB_VERSION: ${{ matrix.influxdb-version }}
61-
UV_SYSTEM_PYTHON: true
6261
# Do not tear down Testcontainers
6362
TC_KEEPALIVE: true
6463

@@ -72,19 +71,13 @@ jobs:
7271
- name: Acquire sources
7372
uses: actions/checkout@v6
7473

75-
- name: Install Python
76-
uses: actions/setup-python@v6
77-
with:
78-
python-version: ${{ matrix.python-version }}
79-
8074
- name: Install uv
8175
uses: astral-sh/setup-uv@v7
8276
with:
83-
cache-dependency-glob: |
84-
pyproject.toml
77+
activate-environment: 'true'
8578
cache-suffix: ${{ matrix.python-version }}
8679
enable-cache: true
87-
version: "latest"
80+
python-version: ${{ matrix.python-version }}
8881

8982
- name: Set up project
9083
run: |

.github/workflows/kinesis.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ jobs:
4949
env:
5050
OS: ${{ matrix.os }}
5151
PYTHON: ${{ matrix.python-version }}
52-
UV_SYSTEM_PYTHON: true
5352
# Do not tear down Testcontainers
5453
TC_KEEPALIVE: true
5554

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

72-
- name: Install Python
73-
uses: actions/setup-python@v6
74-
with:
75-
python-version: ${{ matrix.python-version }}
76-
7771
- name: Install uv
7872
uses: astral-sh/setup-uv@v7
7973
with:
80-
cache-dependency-glob: |
81-
pyproject.toml
74+
activate-environment: 'true'
8275
cache-suffix: ${{ matrix.python-version }}
8376
enable-cache: true
84-
version: "latest"
77+
python-version: ${{ matrix.python-version }}
8578

8679
- name: Set up project
8780
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
@@ -60,7 +60,6 @@ jobs:
6060
OS: ${{ matrix.os }}
6161
PYTHON: ${{ matrix.python-version }}
6262
MONGODB_VERSION: ${{ matrix.mongodb-version }}
63-
UV_SYSTEM_PYTHON: true
6463
# Do not tear down Testcontainers
6564
TC_KEEPALIVE: true
6665

@@ -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/postgresql.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ jobs:
5757
PYTHON: ${{ matrix.python-version }}
5858
CRATEDB_VERSION: ${{ matrix.cratedb-version }}
5959
POSTGRESQL_VERSION: ${{ matrix.postgresql-version }}
60-
UV_SYSTEM_PYTHON: true
6160
TC_KEEPALIVE: true # Do not tear down Testcontainers
6261
INGESTR_DISABLE_TELEMETRY: true
6362

@@ -86,19 +85,13 @@ jobs:
8685
- name: Acquire sources
8786
uses: actions/checkout@v6
8887

89-
- name: Install Python
90-
uses: actions/setup-python@v6
91-
with:
92-
python-version: ${{ matrix.python-version }}
93-
9488
- name: Install uv
9589
uses: astral-sh/setup-uv@v7
9690
with:
97-
cache-dependency-glob: |
98-
pyproject.toml
91+
activate-environment: 'true'
9992
cache-suffix: ${{ matrix.python-version }}
10093
enable-cache: true
101-
version: "latest"
94+
python-version: ${{ matrix.python-version }}
10295

10396
- name: Set up project
10497
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)