Skip to content

Update codeql.yml

Update codeql.yml #11

Workflow file for this run

name: CodeQL
on:
push:
branches:
- main
pull_request:
schedule:
- cron: '56 5 * * 1'
workflow_call:
jobs:
analyze:
name: Analyze
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
language:
- cpp
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.12
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade setuptools
pip install numpy==1.26.4
pip install -r requirements.txt
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
- name: Build project using Python script
run: |
python ./dev.py build
shell: pwsh
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3