Skip to content

Fix RingBuffer::push() loading wrong atomic index (#697) #178

Fix RingBuffer::push() loading wrong atomic index (#697)

Fix RingBuffer::push() loading wrong atomic index (#697) #178

Workflow file for this run

name: Lint Build and Test

Check failure on line 1 in .github/workflows/build_test.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/build_test.yaml

Invalid workflow file

(Line: 47, Col: 13): Expected format {org}/{repo}[/path]@ref. Actual 'python3 ./scripts/dev.py utils install-system-packages'
on:
pull_request:
push:
branches:
- master
jobs:
lint:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: install python
run: sudo apt install python3 python3-pip python3-venv
- name: install python-deps one
run: cd python && python3 setup.py egg_info && pip3 install `grep -v '^\[' src/*.egg-info/requires.txt`
- name: install deps
run: python3 ./scripts/dev.py utils install-system-packages --clangformat
- name: install python-deps
run: pip3 install --force-reinstall mypy==1.14.1 flake8==7.1.2 clang-format==14.0.0
- name: cpp-lint
run: python3 ./scripts/dev.py lint clang-format
- name: python-lint
run: cd python && mypy ./src ./tests ../tests/hil ../tests/integration && flake8
continue-on-error: true
linux-2204-build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: install python
run: sudo apt install python3 python3-pip python3-venv
- name: install deps
run: python3 ./scripts/dev.py utils install-system-packages
- name: cmake configure
run: cmake . -B build -DBUILD_TESTING=ON -DBUILD_EXAMPLES=ON
- name: cmake build
run: cmake --build build -j4
- name: run tests
run: cd build/ && ctest -j4 --output-on-failure
linux-2404-build:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: install python
run: sudo apt install python3 python3-pip python3-venv
- name: install deps
uses: python3 ./scripts/dev.py utils install-system-packages
- name: cmake configure
run: cmake . -B build -DBUILD_TESTING=ON -DBUILD_EXAMPLES=ON
- name: cmake build
run: cmake --build build -j4
- name: run tests
run: cd build/ && ctest -j4 --output-on-failure
linux-python-build-2204:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v1
- name: install python
run: sudo apt install python3 python3-pip python3-venv
- name: install deps
run: python3 ./scripts/dev.py utils install-system-package
- name: install python-deps
run: pip3 install pytest pytest-xdist
- name: build python
run: cd python && sudo python3 -m pip install -e .[test]
- name: run tests
run: cd python/tests && pytest -n4
linux-python-build-2404:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v1
- name: install python
run: sudo apt install python3 python3-pip python3-venv
- name: install deps
run: python3 ./scripts/dev.py utils install-system-packages
- name: setup venv
run: python3 -m venv venv
- name: Activate virtual environment
run: |
echo PATH=${GITHUB_WORKSPACE}/venv/bin:$PATH >> $GITHUB_ENV
echo VIRTUAL_ENV=${GITHUB_WORKSPACE}/venv >> $GITHUB_ENV
ls ${GITHUB_WORKSPACE}/venv
- name: install python-deps
run: |
which pip3
pip3 install pytest pytest-xdist
- name: build python
run: cd python && python3 -m pip install -e .[test]
- name: run tests
run: cd python/tests && python3 -m pytest -n4
windows-build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
- name: vcpkg build
uses: johnwason/vcpkg-action@v6
id: vcpkg
with:
manifest-dir: ${{ github.workspace }}
triplet: x64-windows
token: ${{ github.token }}
github-binarycache: true
fetch-depth: 0
- name: cmake configure
run: cmake . -B build -DBUILD_TESTING=ON -DBUILD_EXAMPLES=ON -DCMAKE_TOOLCHAIN_FILE=D:/a/ouster-sdk/ouster-sdk/vcpkg/scripts/buildsystems/vcpkg.cmake -DCMAKE_BUILD_TYPE=Release
- name: cmake build
run: cmake --build build -j4
- name: run tests
run: cd build/ && ctest -j4 -C Debug --output-on-failure
windows-python-build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
- uses: seanmiddleditch/gha-setup-ninja@master
- uses: ilammy/msvc-dev-cmd@v1
- name: vcpkg build
uses: johnwason/vcpkg-action@v6
id: vcpkg
with:
manifest-dir: ${{ github.workspace }}
triplet: x64-windows
token: ${{ github.token }}
github-binarycache: true
fetch-depth: 0
- name: install python-deps
run: pip3 install pytest pytest-xdist
- name: build python
run: cd python && python3 -m pip install -e .[test]
env:
OUSTER_SDK_CMAKE_ARGS: '-DCMAKE_TOOLCHAIN_FILE=D:/a/ouster-sdk/ouster-sdk/vcpkg/scripts/buildsystems/vcpkg.cmake'
- name: run tests
run: cd python/tests && pytest -n3
mac-build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v1
- name: install deps
run: python3 ./scripts/dev.py utils install-system-packages
- name: cmake configure
run: cmake . -B build -DBUILD_TESTING=ON -DBUILD_EXAMPLES=ON
- name: cmake build
run: cmake --build build -j3
- name: run tests
run: cd build/ && ctest -j3 --output-on-failure
mac-python-build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v1
- name: install python-deps
run: python3.12 -m pip install pytest pytest-xdist --break-system-packages
- name: build python
run: cd python && python3.12 -m pip install -e .[test] --break-system-packages
- name: install deps
run: python3 ./scripts/dev.py utils install-system-packages
- name: set netparams
run: sudo sysctl -w net.inet.udp.maxdgram=65535
- name: run tests
run: cd python/tests && python3.12 -m pytest -n3