Skip to content

Commit 4b2062a

Browse files
authored
cleanup: update workflow
1 parent 36361dc commit 4b2062a

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

.github/workflows/test.yml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ jobs:
66
build-linux:
77
runs-on: ${{ matrix.os }}
88

9+
permissions:
10+
contents: read
11+
912
strategy:
1013
matrix:
1114
os: ['ubuntu-latest', 'ubuntu-24.04-arm']
@@ -51,6 +54,9 @@ jobs:
5154
build-macos:
5255
runs-on: macos-latest
5356

57+
permissions:
58+
contents: read
59+
5460
strategy:
5561
matrix:
5662
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13', 'pypy3.10', 'pypy3.11']
@@ -96,6 +102,9 @@ jobs:
96102
build-windows:
97103
runs-on: windows-latest
98104

105+
permissions:
106+
contents: read
107+
99108
strategy:
100109
matrix:
101110
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
@@ -139,6 +148,9 @@ jobs:
139148
140149
build-windows-arm:
141150
runs-on: windows-11-arm
151+
152+
permissions:
153+
contents: read
142154

143155
strategy:
144156
matrix:
@@ -159,8 +171,8 @@ jobs:
159171
160172
- name: Install sphinx dependencies
161173
run: |
162-
choco install sphinx
163-
python -m pip install sphinx-argparse --user
174+
python -m pip install sphinx sphinx-argparse --user
175+
$env:SPHINXBUILD = "D:\Python3\Scripts\sphinx-build.exe"
164176
165177
- name: Install tldr dependencies
166178
run:
@@ -184,9 +196,12 @@ jobs:
184196
185197
build-snap:
186198
runs-on: ${{ matrix.os }}
187-
if: github.repository == 'tldr-pages/tldr-python-client' && github.ref == 'refs/heads/main'
199+
# if: github.repository == 'tldr-pages/tldr-python-client' && github.ref == 'refs/heads/main'
188200
needs: ['build-linux']
189201

202+
permissions:
203+
contents: read
204+
190205
strategy:
191206
matrix:
192207
os: ['ubuntu-latest', 'ubuntu-24.04-arm']

0 commit comments

Comments
 (0)