Skip to content

Commit e230c4f

Browse files
committed
fix github actions format and permissions
1 parent 46f146d commit e230c4f

4 files changed

Lines changed: 22 additions & 10 deletions

File tree

.github/workflows/auto_merge.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: auto-merge
22

3+
permissions:
4+
contents: read
5+
36
on:
47
pull_request:
58

.github/workflows/docs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: docs
22

3+
permissions:
4+
contents: read
5+
36
on:
47
release:
58
types: [published]

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: release
22

3+
permissions:
4+
contents: read
5+
36
on:
47
release:
58
types: [published]

.github/workflows/test.yml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: test
22

3+
permissions:
4+
contents: read
5+
36
on: push
47

58
jobs:
@@ -20,17 +23,17 @@ jobs:
2023
runs-on: ubuntu-latest
2124
strategy:
2225
matrix:
23-
python-version: ['3.10', '3.11', '3.12', '3.13']
26+
python-version: ["3.10", "3.11", "3.12", "3.13"]
2427
steps:
25-
- uses: actions/checkout@v4
26-
- name: Set up Python ${{ matrix.python-version }}
27-
uses: actions/setup-python@v5
28-
with:
29-
python-version: ${{ matrix.python-version }}
30-
- name: Install dependencies
31-
run: make install-test
32-
- name: Run tests
33-
run: pytest -x
28+
- uses: actions/checkout@v4
29+
- name: Set up Python ${{ matrix.python-version }}
30+
uses: actions/setup-python@v5
31+
with:
32+
python-version: ${{ matrix.python-version }}
33+
- name: Install dependencies
34+
run: make install-test
35+
- name: Run tests
36+
run: pytest -x
3437

3538
coverage:
3639
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)