Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 278f46f

Browse files
committed
ci: Simplify CodeQL setup
The workflow is now warning that `CODEQL_PYTHON` should not be set, as it is no longer used. According to the message, we also don't need to install dependencies, so fold everything into the 'build-for-C++' step.
1 parent 3ad0bc5 commit 278f46f

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,6 @@ jobs:
3333
if: matrix.language != 'javascript'
3434
with:
3535
python-version: '3.x'
36-
- name: Install dependencies
37-
if: matrix.language != 'javascript'
38-
run: |
39-
python -m pip install --upgrade pip setuptools wheel
40-
# TODO: Use pip-tools instead when it supports build-system
41-
# dependencies so we don't need another copy here.
42-
# https://github.com/jazzband/pip-tools/pull/1681
43-
python -m pip install --upgrade \
44-
build contourpy cycler fonttools kiwisolver \
45-
importlib_resources meson-python numpy packaging pillow pybind11 \
46-
pyparsing python-dateutil setuptools-scm
47-
echo "CODEQL_PYTHON=$(which python)" >> $GITHUB_ENV
4836

4937
- name: Initialize CodeQL
5038
uses: github/codeql-action/init@v3
@@ -56,7 +44,9 @@ jobs:
5644
if: matrix.language == 'cpp'
5745
run: |
5846
mkdir ~/.cache/matplotlib
59-
$CODEQL_PYTHON -m build
47+
python -m pip install --upgrade pip setuptools wheel
48+
python -m pip install --upgrade build
49+
python -m build
6050
6151
- name: Perform CodeQL Analysis
6252
uses: github/codeql-action/analyze@v3

0 commit comments

Comments
 (0)