Change flake8 → Ruff #298
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: | |
pull_request: | |
schedule: | |
- cron: '0 6 * * 3' | |
permissions: | |
security-events: write | |
jobs: | |
analyze: | |
strategy: | |
matrix: | |
language: | |
- C++ | |
- Python | |
fail-fast: false | |
name: ${{ matrix.language }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.x | |
- name: Install dependencies | |
run: | | |
python -m pip install -U pip setuptools "scmver[toml]" | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v3 | |
with: | |
languages: ${{ matrix.language }} | |
queries: +security-and-quality | |
- name: Autobuild | |
uses: github/codeql-action/autobuild@v3 | |
- name: Perform CodeQL analysis | |
uses: github/codeql-action/analyze@v3 |