[WIP] Add a minimal pointcept to train the fvdb-based ptv3. #20
This file contains hidden or 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: 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 | |
| - uses: DoozyX/clang-format-lint-action@v0.18.2 | |
| with: | |
| extensions: 'h,cpp,cc,cu,cuh' | |
| clangFormatVersion: 18 | |
| style: file | |
| exclude: '**/external/**' | |
| include-guards: | |
| name: Check include guards | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: swahtz/include-guards-check-action@master | |
| with: | |
| exclude: '**/external/**' | |
| 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 |