Skip to content

Convert Locality Module to Use Nanobind #1407

Convert Locality Module to Use Nanobind

Convert Locality Module to Use Nanobind #1407

Workflow file for this run

name: Style check
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
pull_request:
push:
branches:
- "main"
workflow_dispatch:
defaults:
run:
shell: bash -leo pipefail {0}
jobs:
clang-tidy:
name: Check C++ Code Style
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
submodules: true
- name: Create Python Environment
uses: mamba-org/setup-micromamba@f8b8a1e23a26f60a44c853292711bacfd3eac822 # v1.9.0
with:
micromamba-version: '1.5.8-0'
environment-name: test
environment-file: .github/workflows/env-files/py312-conda-lock.yml
- name: Build freud and export compile commands
run: |
python3 setup.py build_ext --inplace
# TODO: switch to this command after migrating to scikit-build-core
# uv pip install --no-build-isolation --no-deps -ve .
env:
CMAKE_ARGS: "-DCMAKE_EXPORT_COMPILE_COMMANDS=True"
- name: cppcheck
run: pre-commit run cppcheck --all-files --hook-stage=manual -v
- name: clang-tidy
run: pre-commit run clang-tidy --all-files --hook-stage=manual -v