diff --git a/.github/workflows/github-actions.yml b/.github/workflows/github-actions.yml index 45ba9284..081219d7 100644 --- a/.github/workflows/github-actions.yml +++ b/.github/workflows/github-actions.yml @@ -13,9 +13,7 @@ jobs: - name: Install apt dependencies run: | apt-get update - apt-get install -y build-essential clang-format file git python3-pip python3-colcon-common-extensions python3-rosdep - - name: Install pip dependencies - run: pip install pre-commit + apt-get install -y build-essential clang-format file git python3-pip python3-colcon-common-extensions python3-rosdep pre-commit - name: Checkout repository uses: actions/checkout@v3 with: diff --git a/README.md b/README.md index 4b74181f..e9219a60 100644 --- a/README.md +++ b/README.md @@ -77,10 +77,10 @@ pre-commit formatting checks This repo has a [pre-commit](https://pre-commit.com/) check that runs in CI. You can use this locally and set it up to run automatically before you commit -something. To install, use pip: +something. To install, use apt: ```bash -pip3 install --user pre-commit +sudo apt install pre-commit ``` To run over all the files in the repo manually: