Skip to content

Commit ed22393

Browse files
committed
Add permissions for test workflow
1 parent 7fc1db2 commit ed22393

File tree

1 file changed

+17
-14
lines changed

1 file changed

+17
-14
lines changed

.github/workflows/test.yml

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
- push
55
- pull_request
66

7+
permissions:
8+
contents: read
9+
710
jobs:
811
test:
912
runs-on: ubuntu-latest
@@ -12,22 +15,22 @@ jobs:
1215
python-version: ["3.11", "3.12", "3.13"]
1316

1417
steps:
15-
- name: Checkout code
16-
uses: actions/checkout@v4
18+
- name: Checkout code
19+
uses: actions/checkout@v4
1720

18-
- name: Install the latest version of uv and set the python version
19-
uses: astral-sh/setup-uv@v6
20-
with:
21-
python-version: ${{ matrix.python-version }}
21+
- name: Install the latest version of uv and set the python version
22+
uses: astral-sh/setup-uv@v6
23+
with:
24+
python-version: ${{ matrix.python-version }}
2225

23-
- name: Install dependencies
24-
run: uv sync --all-groups
26+
- name: Install dependencies
27+
run: uv sync --all-groups
2528

26-
- name: Run ruff linter
27-
run: uv run ruff check .
29+
- name: Run ruff linter
30+
run: uv run ruff check .
2831

29-
- name: Run ruff formatter
30-
run: uv run ruff format --check .
32+
- name: Run ruff formatter
33+
run: uv run ruff format --check .
3134

32-
- name: Run pytest
33-
run: uv run pytest tests/ -v --cov=app/
35+
- name: Run pytest
36+
run: uv run pytest tests/ -v --cov=app/

0 commit comments

Comments
 (0)