23
23
uses : actions/setup-python@v5
24
24
with :
25
25
python-version : ' 3.x'
26
+ cache : pip
26
27
- name : Install Build Dependencies
27
28
run : |
28
29
python -m pip install --upgrade doc2dash setuptools -r doc/requirements.txt
54
55
strategy :
55
56
fail-fast : false
56
57
matrix :
57
- os : [ubuntu-latest, windows-latest, macos-14 ]
58
+ os : [ubuntu-latest, windows-latest, macos-latest ]
58
59
qt-lib : [pyqt, pyside]
59
60
python-version : ["3.10", "3.11", "3.12"]
60
61
include :
77
78
qt-lib : " pyside"
78
79
qt-version : " PySide6-Essentials"
79
80
exclude :
80
- - os : macos-14
81
+ - os : macos-latest
81
82
python-version : " 3.10"
82
83
qt-lib : " pyside"
83
84
steps :
86
87
- name : Setup Python ${{ matrix.python-version }}
87
88
uses : actions/setup-python@v5
88
89
with :
89
- # Semantic version range syntax or exact version of a Python version
90
90
python-version : ${{ matrix.python-version }}
91
91
cache : pip
92
- - name : Get pip cache dir
93
- id : pip-cache
94
- run : |
95
- echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
96
- shell : bash
97
- - name : pip cache
98
- uses : actions/cache@v4
99
- with :
100
- path : ${{ steps.pip-cache.outputs.dir }}
101
- key : ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
102
- restore-keys : |
103
- ${{ runner.os }}-pip-
104
92
- name : " Install Windows-Mesa OpenGL DLL"
105
93
if : runner.os == 'Windows'
106
94
run : |
@@ -173,7 +161,7 @@ jobs:
173
161
strategy :
174
162
fail-fast : false
175
163
matrix :
176
- os : [ubuntu-latest, windows-latest, macos-14 ]
164
+ os : [ubuntu-latest, windows-latest, macos-latest ]
177
165
qt-lib : [pyqt, pyside]
178
166
include :
179
167
- qt-lib : pyqt
@@ -257,6 +245,7 @@ jobs:
257
245
uses : actions/setup-python@v5
258
246
with :
259
247
python-version : ' 3.12'
248
+ cache : pip
260
249
- name : Build Wheel
261
250
run : |
262
251
python -m pip install setuptools wheel
@@ -265,48 +254,29 @@ jobs:
265
254
analyze :
266
255
name : analyze
267
256
runs-on : ubuntu-latest
257
+ permissions :
258
+ actions : read
259
+ contents : read
260
+ security-events : write
268
261
steps :
269
262
- name : Checkout repository
270
263
uses : actions/checkout@v4
271
264
with :
272
- # We must fetch at least the immediate parents so that if this is
273
- # a pull request then we can checkout the head.
274
265
fetch-depth : 2
275
266
- name : Setup Python
276
267
uses : actions/setup-python@v5
277
268
with :
278
269
python-version : ' 3.12'
270
+ cache : pip
279
271
- name : Install Dependencies
280
272
run : |
281
273
python -m pip install PyQt5 numpy scipy
282
-
283
- # Initializes the CodeQL tools for scanning.
284
274
- name : Initialize CodeQL
285
275
uses : github/codeql-action/init@v3
286
276
with :
287
277
languages : ' python'
288
- # Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python']
289
- # If you wish to specify custom queries, you can do so here or in a config file.
290
- # By default, queries listed here will override any specified in a config file.
291
- # Prefix the list here with "+" to use these queries and those in the config file.
292
278
queries : +security-and-quality
293
- setup-python-dependencies : false
294
-
295
- # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
296
- # If this step fails, then you should remove it and run the build manually (see below)
297
279
- name : Autobuild
298
280
uses : github/codeql-action/autobuild@v3
299
-
300
- # ℹ️ Command-line programs to run using the OS shell.
301
- # 📚 https://git.io/JvXDl
302
-
303
- # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
304
- # and modify them (or add more) to build your code if your project
305
- # uses a compiled language
306
-
307
- # - run: |
308
- # make bootstrap
309
- # make release
310
-
311
281
- name : Perform CodeQL Analysis
312
282
uses : github/codeql-action/analyze@v3
0 commit comments