Skip to content

[pre-commit.ci] pre-commit autoupdate #466

[pre-commit.ci] pre-commit autoupdate

[pre-commit.ci] pre-commit autoupdate #466

Workflow file for this run

name: "CodeQL"
on:
push:
branches:
- main
pull_request:
schedule:
- cron: '0 0 * * 1'
jobs:
CodeQL:
runs-on: ubuntu-latest
permissions:
security-events: write
actions: read
contents: read
strategy:
matrix:
language: ["python", "cpp"]
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python 3.11
if: matrix.language == 'python'
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Set up CMake
if: matrix.language == 'cpp'
uses: lukka/[email protected]
- name: Install Poetry
if: matrix.language == 'python'
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
- name: Install dependencies
if: matrix.language == 'python'
run: poetry install --no-interaction
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
setup-python-dependencies: false
- name: Configure and build CMake
if: matrix.language == 'cpp'
uses: lukka/run-cmake@v3
with:
cmakeListsTxtPath: "${{ github.workspace }}/hades_extensions/CMakeLists.txt"
buildDirectory: "${{ github.workspace }}/build"
- name: Perform CodeQL analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{ matrix.language }}"