Skip to content

Convert Python bindings back to Rust #185

Convert Python bindings back to Rust

Convert Python bindings back to Rust #185

Workflow file for this run

# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"
on:
push:
branches: ["main"]
paths:
- .github/workflows/codeql_python.yml
- bindings/python/pychecks/**
- bindings/python/tests/**
- bindings/python/conftest.py
- bindings/python/pyproject.toml
pull_request:
# The branches below must be a subset of the branches above
branches: ["main"]
paths:
- .github/workflows/codeql_python.yml
- bindings/python/pychecks/**
- bindings/python/tests/**
- bindings/python/conftest.py
- bindings/python/pyproject.toml
schedule:
- cron: "0 0 * * 1"
jobs:
analyze:
name: Analyze Python
defaults:
run:
working-directory: bindings/python
strategy:
matrix:
python-version:
- "3.7"
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
- "3" # Latest version
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: python
# Build Python Project
- name: Setup Python ${{matrix.python-version}}
id: setup-python
uses: actions/setup-python@v5
with:
python-version: ${{matrix.python-version}}
cache: 'pip'
- name: Setup virtual environment
run: |
python -m venv .venv
source .venv/bin/activate
- name: Python - Install dependencies
run: python -m pip install .[build]
# Run the analysis
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:python"