Skip to content

Commit

Permalink
try removing python dependency installation
Browse files Browse the repository at this point in the history
  • Loading branch information
echoix committed Jan 14, 2024
1 parent bbfef79 commit 9e02d59
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,27 +47,27 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: '3.x'
cache: pip
cache-dependency-path: |
.github/workflows/python_requirements.txt
.github/workflows/optional_requirements.txt
# cache: pip
# cache-dependency-path: |
# .github/workflows/python_requirements.txt
# .github/workflows/optional_requirements.txt
- name: Install non-Python dependencies
if: ${{ matrix.language == 'c-cpp' }}
run: |
sudo apt-get update -y
sudo apt-get install -y wget git gawk findutils
xargs -a <(awk '! /^ *(#|$)/' ".github/workflows/apt.txt") -r -- \
sudo apt-get install -y --no-install-recommends --no-install-suggests
- name: Install Python dependencies
if: ${{ matrix.language == 'c-cpp' }}
run: |
python -m pip install --upgrade pip
pip install \
-r .github/workflows/python_requirements.txt \
-r .github/workflows/optional_requirements.txt
# Set the `CODEQL-PYTHON` environment variable to the Python executable
# that includes the dependencies
echo "CODEQL_PYTHON=$(which python)" >> $GITHUB_ENV
# - name: Install Python dependencies
# if: ${{ matrix.language == 'c-cpp' }}
# run: |
# python -m pip install --upgrade pip
# pip install \
# -r .github/workflows/python_requirements.txt \
# -r .github/workflows/optional_requirements.txt
# # Set the `CODEQL-PYTHON` environment variable to the Python executable
# # that includes the dependencies
# echo "CODEQL_PYTHON=$(which python)" >> $GITHUB_ENV

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
Expand Down

0 comments on commit 9e02d59

Please sign in to comment.