message: [ci] Install ONNX before linting
diff: @@ -12,6 +12,28 @@ jobs:
  runs-on: ubuntu-latest
  steps:
  - uses: actions/checkout@v2
  + - name: Setup Python
  + uses: actions/setup-python@v4.1.0
  + with:
  + python-version: "3.10"
  + # Install onnx so that it is found by the linters
  + - name: Install ONNX
  + run: |
  + source workflow_scripts/protobuf/build_protobuf_unix.sh $(nproc)
  +
  + python -m pip install --quiet --upgrade pip setuptools wheel
  + python -m pip install --quiet -r requirements-release.txt
  +
  + sudo apt-get install -qq -o=Dpkg::Use-Pty=0 -y --no-install-recommends dos2unix
  + git submodule update --init --recursive
  + export ONNX_BUILD_TESTS=0
  + export ONNX_ML=1
  + export CMAKE_ARGS="-DONNXIFI_DUMMY_BACKEND=ON -DONNX_WERROR=ON"
  + # ONNX lite
  + export CMAKE_ARGS="${CMAKE_ARGS} -DONNX_USE_LITE_PROTO=ON"
  + export ONNX_NAMESPACE=ONNX_NAMESPACE_FOO_BAR_FOR_CI
  +
  + python setup.py install
  - name: flake8
  uses: reviewdog/action-flake8@v3
  with:
  