Skip to content

Commit 846d89a

Browse files
committed
ci: bump actions, and ruff version. Use action
1 parent 4d11ce3 commit 846d89a

File tree

2 files changed

+17
-19
lines changed

2 files changed

+17
-19
lines changed

.github/workflows/test.yml

+16-18
Original file line numberDiff line numberDiff line change
@@ -16,26 +16,22 @@ jobs:
1616
runs-on: ubuntu-latest
1717
steps:
1818
- uses: actions/checkout@v4
19-
- name: Install a specific version of uv
20-
uses: astral-sh/setup-uv@v3
19+
- name: Install uv
20+
uses: astral-sh/setup-uv@v5
2121
with:
22-
version: "0.4.4"
22+
version: "0.6.11"
2323
enable-cache: true
24-
- run: uvx [email protected] check .
25-
26-
ruff-format:
27-
runs-on: ubuntu-latest
28-
steps:
29-
- uses: actions/checkout@v4
30-
- name: Install a specific version of uv
31-
uses: astral-sh/setup-uv@v3
24+
- name: Lint
25+
uses: astral-sh/ruff-action@v3
3226
with:
33-
version: "0.4.4"
34-
enable-cache: true
35-
- run: uvx [email protected] format . --check
27+
args: "check --fix"
28+
- name: Format
29+
uses: astral-sh/ruff-action@v3
30+
with:
31+
args: "format --check --diff"
3632

3733
test:
38-
needs: [ruff, ruff-format]
34+
needs: [ruff]
3935
runs-on: ubuntu-latest
4036
strategy:
4137
matrix:
@@ -65,12 +61,14 @@ jobs:
6561
- name: Start minikube's loadbalancer tunnel
6662
run: minikube tunnel &> /dev/null &
6763
- name: Install the latest version of uv
68-
uses: astral-sh/setup-uv@v2
64+
uses: astral-sh/setup-uv@v5
6965
with:
7066
version: "latest"
7167
enable-cache: true
72-
- name: Install Python
73-
run: uv python install $PYTHON_VERSION
68+
- name: "Set up Python"
69+
uses: actions/setup-python@v5
70+
with:
71+
python-version-file: "pyproject.toml"
7472
- name: Install project
7573
run: uv sync --all-extras --dev
7674
- name: Run tests

ruff.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
required-version = "==0.6.8"
1+
required-version = ">=0.11"
22
extend-exclude = [
33
"resources/scenarios/test_framework",
44
"resources/images/exporter/authproxy.py",

0 commit comments

Comments
 (0)