Update codeql.yml #13
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
pip install pillow | |
pip install deepdiff | |
pip install numpy | |
pip install bump2version | |
pip install conan | |
pip install pytest | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v3 | |
with: | |
languages: ${{ matrix.language }} | |
- name: Build project using Python script | |
run: | | |
conan profile detect --force | |
python ./dev.py build | |
shell: pwsh | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v3 |