@ -20,7 +20,7 @@ env:
DOCKER_LOGIN : docker login ghcr.io -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }}
DOCKER_LOGIN : docker login ghcr.io -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }}
BUILD : selfdrive/test/docker_build.sh base
BUILD : selfdrive/test/docker_build.sh base
RUN : docker run --shm-size 1G -v $PWD:/tmp/openpilot -w /tmp/openpilot -e CI=1 -e PYTHONWARNINGS=error -e FILEREADER_CACHE=1 -e PYTHONPATH=/tmp/openpilot -e NUM_JOBS -e JOB_ID -e GITHUB_ACTION -e GITHUB_REF -e GITHUB_HEAD_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_RUN_ID -v $GITHUB_WORKSPACE/.ci_cache/scons_cache:/tmp/scons_cache -v $GITHUB_WORKSPACE/.ci_cache/comma_download_cache:/tmp/comma_download_cache -v $GITHUB_WORKSPACE/.ci_cache/openpilot_cache:/tmp/openpilot_cache $BASE_IMAGE /bin/bash -c
RUN : docker run --shm-size 1G -v $PWD:/tmp/openpilot -w /tmp/openpilot -e CI=1 -e PRE_COMMIT_HOME=/tmp/pre-commit -e P YTHONWARNINGS=error -e FILEREADER_CACHE=1 -e PYTHONPATH=/tmp/openpilot -e NUM_JOBS -e JOB_ID -e GITHUB_ACTION -e GITHUB_REF -e GITHUB_HEAD_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_RUN_ID -v $GITHUB_WORKSPACE/.ci_cache/pre-commit:/tmp/pre-commit -v $GITHUB_WORKSPACE/.ci_cache/scons_cache:/tmp/scons_cache -v $GITHUB_WORKSPACE/.ci_cache/comma_download_cache:/tmp/comma_download_cache -v $GITHUB_WORKSPACE/.ci_cache/openpilot_cache:/tmp/openpilot_cache $BASE_IMAGE /bin/bash -c
BUILD_CL : selfdrive/test/docker_build.sh cl
BUILD_CL : selfdrive/test/docker_build.sh cl
@ -42,6 +42,7 @@ jobs:
- name : Build devel
- name : Build devel
timeout-minutes : 1
timeout-minutes : 1
run : TARGET_DIR=$STRIPPED_DIR release/build_devel.sh
run : TARGET_DIR=$STRIPPED_DIR release/build_devel.sh
- uses : ./.github/workflows/setup-pre-commit
- uses : ./.github/workflows/setup-with-retry
- uses : ./.github/workflows/setup-with-retry
- name : Check submodules
- name : Check submodules
if : github.ref == 'refs/heads/master' && github.repository == 'commaai/openpilot'
if : github.ref == 'refs/heads/master' && github.repository == 'commaai/openpilot'
@ -66,7 +67,7 @@ jobs:
cp pyproject.toml $STRIPPED_DIR
cp pyproject.toml $STRIPPED_DIR
cp poetry.lock $STRIPPED_DIR
cp poetry.lock $STRIPPED_DIR
cd $STRIPPED_DIR
cd $STRIPPED_DIR
${{ env.RUN }} "unset PYTHONWARNINGS && SKIP=check-added-large-files pre-commit run --all"
${{ env.RUN }} "unset PYTHONWARNINGS && SKIP=check-added-large-files pre-commit run --all && chmod -R 777 /tmp/pre-commit "
build:
build:
strategy:
strategy:
@ -137,10 +138,11 @@ jobs:
- uses : actions/checkout@v4
- uses : actions/checkout@v4
with:
with:
submodules : true
submodules : true
- uses : ./.github/workflows/setup-pre-commit
- uses : ./.github/workflows/setup-with-retry
- uses : ./.github/workflows/setup-with-retry
- name : pre-commit
- name : pre-commit
timeout-minutes : 4
timeout-minutes : 4
run : ${{ env.RUN }} "unset PYTHONWARNINGS && pre-commit run --all"
run : ${{ env.RUN }} "unset PYTHONWARNINGS && pre-commit run --all && chmod -R 777 /tmp/pre-commit "
valgrind:
valgrind:
name : valgrind
name : valgrind