Skip to content

Commit 1f52b03

Browse files
committed
ci: use uv more cleanly
1 parent bfa3654 commit 1f52b03

File tree

1 file changed

+11
-14
lines changed

1 file changed

+11
-14
lines changed

.github/workflows/test.yml

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
branches:
77
- dev
88

9+
env:
10+
UV_SYSTEM_PYTHON: 1
11+
912
jobs:
1013

1114
ruff:
@@ -14,19 +17,15 @@ jobs:
1417
runs-on: ubuntu-latest
1518
steps:
1619
- uses: actions/checkout@v4
17-
- uses: hynek/setup-cached-uv@v1
18-
- run: uv venv
19-
- run: uv pip install ruff
20-
- run: source .venv/bin/activate; ruff check .
20+
- run: curl -LsSf https://astral.sh/uv/install.sh | sh
21+
- run: uvx ruff check .
2122

2223
ruff-format:
2324
runs-on: ubuntu-latest
2425
steps:
2526
- uses: actions/checkout@v4
26-
- uses: hynek/setup-cached-uv@v1
27-
- run: uv venv
28-
- run: uv pip install ruff
29-
- run: source .venv/bin/activate; ruff format .
27+
- run: curl -LsSf https://astral.sh/uv/install.sh | sh
28+
- run: uvx ruff format . --check
3029

3130
test:
3231
runs-on: ubuntu-latest
@@ -36,15 +35,13 @@ jobs:
3635
test: [scenarios_test.py, rpc_test.py, graph_test.py, logging_test.py]
3736
steps:
3837
- uses: actions/checkout@v4
39-
- uses: hynek/setup-cached-uv@v1
4038
- uses: azure/[email protected]
4139
- uses: medyagh/setup-minikube@master
42-
- name: Run tests
40+
- name: Install uv
4341
run: |
44-
echo Installing warnet python package for cli
45-
uv venv
46-
uv pip install -e .
47-
shell: bash
42+
curl -LsSf https://astral.sh/uv/install.sh | sh
43+
- name: Install project
44+
run: uv sync --all-extras --dev
4845
- name: Run tests
4946
run: |
5047
source .venv/bin/activate

0 commit comments

Comments
 (0)