Skip to content

Point Encoder

Point Encoder #35

Workflow file for this run

name: fVDB Code Style
on:
pull_request:
branches:
- main
paths-ignore:
- 'CODEOWNERS'
- '**.md'
# Allow subsequent pushes to the same PR or REF to cancel any previous jobs.
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
test-python-black-lint:
name: Check Python code style with black
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: psf/black@stable
with:
options: "--check --verbose --target-version=py311 --line-length=120 --extend-exclude '.*/external/.*'"
src: "point_transformer_v3"
version: "~= 24.0"
test-cpp-clang-format-lint:
name: Check C++ code style with clang-format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# TODO: Re-enable when C++ files are present
# - uses: DoozyX/[email protected]
# with:
# extensions: 'h,cpp,cc,cu,cuh'
# clangFormatVersion: 18
# style: file
# exclude: '**/external/**'
- name: Placeholder - always succeed
run: echo "clang-format check placeholder - always succeeds"
include-guards:
name: Check include guards
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# TODO: Re-enable when C++ header files are present
# - uses: swahtz/include-guards-check-action@master
# with:
# exclude: '**/external/**'
- name: Placeholder - always succeed
run: echo "include-guards check placeholder - always succeeds"
check-spdx-identifiers:
name: Check SPDX identifiers
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: Check SPDX headers
run: |
python3 point_transformer_v3/scripts/check_spdx.py
# Search the git repository for any trailing spaces excluding auto-generated wlt files
# NOTE: Migrated from openvdb whitespace.yml
trailingspaces:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: test
run: |
set +e
git grep -n -I -E '^.+[ ]+$' -- point_transformer_v3 ':!**/external/**' ':!*.wlt'
test $? -eq 1
# Search for any tabs excluding meeting notes, image files and a few others
# NOTE: Migrated from openvdb whitespace.yml
spacesnottabs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: test
run: |
set +e
git grep -n -I " " -- point_transformer_v3 ':!**/external/**' ':!*/codestyle.yml' ':!*.svg' ':!*.cmd' ':!*.png' ':!*.wlt' ':!*.jpg' ':!*.gif' ':!*.mp4' ':!*.pt' ':!*.pth' ':!*.nvdb' ':!*.npz' ':!*.gitmodules'
test $? -eq 1