Skip to content

Commit 63b7cd6

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

File tree

3 files changed

+21
-23
lines changed

3 files changed

+21
-23
lines changed

.github/workflows/test.yml

Lines changed: 16 additions & 18 deletions
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

docs/developer-notes.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,17 @@ Refer to the `uv` documentation for installation methods: https://docs.astral.sh
3030
With `uv` installed you can add/remove dependencies using `uv add <dep>` or `uv remove <dep>.
3131
This will update the [`uv.lock`](https://docs.astral.sh/uv/guides/projects/#uvlock) file automatically.
3232

33-
We use ruff version 0.6.8 in this project currently. This can be installed as a stand-alone binary (see documentation), or via `uv` using:
33+
We use ruff version 0.11.0 in this project currently. This can be installed as a stand-alone binary (see documentation), or via `uv` using:
3434

3535
```bash
3636
# install
37-
$ uv tool install ruff@0.6.8
37+
$ uv tool install ruff@0.11.0
3838

3939
# lint
40-
$ uvx ruff@0.6.8 check .
40+
$ uvx ruff@0.11.0 check .
4141

4242
# format
43-
$ uvx ruff@0.6.8 format .
43+
$ uvx ruff@0.11.0 format .
4444
```
4545

4646
## Release process

ruff.toml

Lines changed: 1 addition & 1 deletion
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)