build(deps): Bump github/codeql-action from 3.24.10 to 3.25.3 #323
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: Python Test Suite | |
on: | |
push: | |
branches: ["main"] | |
paths: | |
- .github/workflows/*_python.yml | |
- bindings/python/** | |
- src/** | |
- Cargo.lock | |
- Cargo.toml | |
- deny.toml | |
- .gitmodules | |
pull_request: | |
paths: | |
- .github/workflows/*_python.yml | |
- bindings/python/** | |
- src/** | |
- Cargo.lock | |
- Cargo.toml | |
- deny.toml | |
- .gitmodules | |
permissions: | |
contents: read | |
jobs: | |
test: | |
name: Python test | |
defaults: | |
run: | |
working-directory: bindings/python | |
shell: bash | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
- windows-latest | |
- macos-latest | |
python-version: | |
- "3.7" | |
- "3.8" | |
- "3.9" | |
- "3.10" | |
- "3.11" | |
- "3.12" | |
- "3" # Latest version | |
runs-on: ${{matrix.os}} | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0 | |
with: | |
egress-policy: audit | |
- uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3 | |
with: | |
submodules: recursive | |
- uses: dtolnay/rust-toolchain@d0592fe69e35bc8f12e3dbaf9ad2694d976cb8e3 # stable | |
- uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3 | |
- name: Run Cargo Clippy | |
run: cargo clippy | |
- name: Run Cargo Fmt | |
run: cargo fmt --check | |
- name: Run Cargo Deny | |
uses: EmbarkStudios/cargo-deny-action@3f4a782664881cf5725d0ffd23969fcce89fd868 # v1.6.3 | |
if: ${{ matrix.os == 'ubuntu-latest' }} | |
- name: Setup Python ${{matrix.python-version}} | |
id: setup-python | |
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0 | |
with: | |
python-version: ${{matrix.python-version}} | |
cache: 'pip' | |
- name: Cache virtualenv | |
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 | |
with: | |
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version}}-${{ hashFiles('pyproject.toml') }} | |
path: .venv | |
- name: Setup virtual environment | |
run: | | |
python -m venv .venv | |
if [ "$RUNNER_OS" == "Windows" ]; then | |
source .venv/Scripts/activate | |
else | |
source .venv/bin/activate | |
fi | |
- name: Install dependencies | |
run: python -m pip install .[test] | |
- name: Lint with Ruff | |
run: | | |
python -m ruff --output-format=github . | |
- name: Lint with Ruff | |
run: | | |
python -m ruff format --check . | |
- name: Build Rust | |
uses: PyO3/maturin-action@bf468cfccfe9a3fec2554b0eebf2e9276cf066aa # v1.42.1 | |
with: | |
command: develop | |
sccache: 'true' | |
manylinux: auto | |
working-directory: bindings/python | |
- name: Run tests | |
run: | | |
python -m pytest --hypothesis-profile default -n=auto tests/ |