Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 26832df

Browse filesBrowse files
authored
Merge pull request #27733 from QuLogic/fix-codeql
ci: Simplify CodeQL setup
2 parents 61661ab + f90c0da commit 26832df
Copy full SHA for 26832df

File tree

Expand file treeCollapse file tree

1 file changed

+4
-22
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-22
lines changed

‎.github/workflows/codeql-analysis.yml

Copy file name to clipboardExpand all lines: .github/workflows/codeql-analysis.yml
+4-22Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -22,41 +22,23 @@ jobs:
2222
strategy:
2323
fail-fast: false
2424
matrix:
25-
language: ['cpp', 'javascript', 'python']
25+
language: ['c-cpp', 'javascript', 'python']
2626

2727
steps:
2828
- name: Checkout repository
2929
uses: actions/checkout@v4
3030

31-
- name: Set up Python
32-
uses: actions/setup-python@v5
33-
if: matrix.language != 'javascript'
34-
with:
35-
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
48-
4931
- name: Initialize CodeQL
5032
uses: github/codeql-action/init@v3
5133
with:
5234
languages: ${{ matrix.language }}
5335
setup-python-dependencies: false
5436

5537
- name: Build compiled code
56-
if: matrix.language == 'cpp'
38+
if: matrix.language == 'c-cpp'
5739
run: |
58-
mkdir ~/.cache/matplotlib
59-
$CODEQL_PYTHON -m build
40+
pip install --user --upgrade pip
41+
pip install --user -v .
6042
6143
- name: Perform CodeQL Analysis
6244
uses: github/codeql-action/analyze@v3

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.