Skip to content

Commit 17d8073

Browse files
committed
CI: Use uv for invoking ngr test runner
1 parent 757bad9 commit 17d8073

9 files changed

Lines changed: 33 additions & 47 deletions

.github/workflows/test-go-gin.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,9 @@ jobs:
5353
with:
5454
go-version: ${{ matrix.go-version }}
5555

56-
- name: Install utilities
57-
run: |
58-
pip install --upgrade 'pip>=23.3' 'setuptools>=64'
59-
pip install --requirement requirements.txt
56+
- name: Install uv
57+
uses: astral-sh/setup-uv@v7
6058

6159
- name: Validate go-gin
6260
run: |
63-
ngr test --accept-no-venv go-gin
61+
uv run --with=pueblo ngr test go-gin

.github/workflows/test-java-spark.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,18 +50,16 @@ jobs:
5050
- name: Acquire sources
5151
uses: actions/checkout@v6
5252

53-
- name: Install utilities
54-
run: |
55-
pip install --upgrade 'pip>=23.3' 'setuptools>=64'
56-
pip install --requirement requirements.txt
57-
5853
- name: Set up Java
5954
uses: actions/setup-java@v5
6055
with:
6156
distribution: "temurin"
6257
java-version: ${{ matrix.java-version }}
6358
cache: "maven"
6459

60+
- name: Install uv
61+
uses: astral-sh/setup-uv@v7
62+
6563
- name: Validate java-spark
6664
run: |
67-
ngr test --accept-no-venv java-spark
65+
uv run --with=pueblo ngr test java-spark

.github/workflows/test-java-spring.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,18 +48,16 @@ jobs:
4848
- name: Acquire sources
4949
uses: actions/checkout@v6
5050

51-
- name: Install utilities
52-
run: |
53-
pip install --upgrade 'pip>=23.3' 'setuptools>=64'
54-
pip install --requirement requirements.txt
55-
5651
- name: Set up Java
5752
uses: actions/setup-java@v5
5853
with:
5954
distribution: "temurin"
6055
java-version: ${{ matrix.java-version }}
6156
cache: "maven"
6257

58+
- name: Install uv
59+
uses: astral-sh/setup-uv@v7
60+
6361
- name: Validate java-spring
6462
run: |
65-
ngr test --accept-no-venv java-spring
63+
uv run --with=pueblo ngr test java-spring

.github/workflows/test-nodejs-express.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,6 @@ jobs:
4545
- name: Acquire sources
4646
uses: actions/checkout@v6
4747

48-
- name: Install utilities
49-
run: |
50-
pip install --upgrade 'pip>=23.3' 'setuptools>=64'
51-
pip install --requirement requirements.txt
52-
5348
# https://github.com/actions/setup-node
5449
- name: Set up Node.js
5550
uses: actions/setup-node@v6
@@ -59,6 +54,9 @@ jobs:
5954
cache-dependency-path: |
6055
nodejs-express/package.json
6156
57+
- name: Install uv
58+
uses: astral-sh/setup-uv@v7
59+
6260
- name: Validate nodejs-express
6361
run: |
64-
ngr test --accept-no-venv nodejs-express
62+
uv run --with=pueblo ngr test nodejs-express

.github/workflows/test-php-slim.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,18 +45,16 @@ jobs:
4545
- name: Acquire sources
4646
uses: actions/checkout@v6
4747

48-
- name: Install utilities
49-
run: |
50-
pip install --upgrade 'pip>=23.3' 'setuptools>=64'
51-
pip install --requirement requirements.txt
52-
5348
# https://github.com/marketplace/actions/setup-php-action
5449
- name: Set up PHP
5550
uses: shivammathur/setup-php@v2
5651
with:
5752
php-version: ${{ matrix.php-version }}
5853
extensions: pdo_pgsql
5954

55+
- name: Install uv
56+
uses: astral-sh/setup-uv@v7
57+
6058
- name: Validate php-slim
6159
run: |
62-
ngr test --accept-no-venv php-slim
60+
uv run --with=pueblo ngr test php-slim

.github/workflows/test-python-flask.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,11 @@ jobs:
3737
fail-fast: false
3838
matrix:
3939
os: [ 'ubuntu-latest' ]
40-
python-version: [ '3.8', '3.12' ]
40+
python-version: [
41+
'3.12',
42+
'3.13',
43+
'3.14',
44+
]
4145
cratedb-version: [ 'nightly' ]
4246

4347
steps:
@@ -54,11 +58,9 @@ jobs:
5458
cache-dependency-path: |
5559
python-flask/pyproject.toml
5660
57-
- name: Install utilities
58-
run: |
59-
pip install --upgrade 'pip>=23.3' 'setuptools>=64'
60-
pip install --requirement requirements.txt
61+
- name: Install uv
62+
uses: astral-sh/setup-uv@v7
6163

6264
- name: Validate python-flask
6365
run: |
64-
ngr test --accept-no-venv python-flask
66+
uv run --with=poethepoet --with=pueblo ngr test python-flask

python-flask/pyproject.toml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name = "cratedb-python-flask-guestbook-demo"
33
version = "0.2.0"
44
description = "Backend API implementation of the CrateDB guestbook demo application"
55
readme = "README.rst"
6+
requires-python = ">=3.8"
67
dependencies = [
78
"crash",
89
"crate",
@@ -13,15 +14,13 @@ dependencies = [
1314
"jinja2<4",
1415
"markupsafe<4",
1516
]
17+
optional-dependencies.develop = [
18+
"poethepoet<1",
19+
]
1620

1721
[tool.poe.tasks]
18-
venv = {cmd="python3 -m venv .venv"}
19-
install = [
20-
{cmd="poe venv"},
21-
{cmd=".venv/bin/pip install --editable=."},
22-
]
2322
run = [
24-
{cmd=".venv/bin/python app.py"},
23+
{cmd="python app.py"},
2524
]
2625
check = [
2726
{cmd="python -m py_compile app.py"},

python-flask/requirements-dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
poethepoet<0.33
1+
poethepoet<1
22
ruff<0.15

requirements.txt

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)