From a446e5aac0d6616e30b848505bf3d3cd0abda773 Mon Sep 17 00:00:00 2001 From: Tycho Andersen Date: Sun, 31 Mar 2024 16:10:23 -0600 Subject: [PATCH] fix more ci warnings for pre-commit: Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/. is fixed by pre-commit@3.0.1 and, The `python-version` input is not set. The version of Python currently in `PATH` will be used. for this we can just set one python version (the latest released today) since we're only running black/isort/etc. Signed-off-by: Tycho Andersen --- .github/workflows/pre_commit.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pre_commit.yml b/.github/workflows/pre_commit.yml index 6dc9e1e6a0..9549dfde76 100644 --- a/.github/workflows/pre_commit.yml +++ b/.github/workflows/pre_commit.yml @@ -10,8 +10,10 @@ jobs: steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 + with: + python-version: '3.12' - name: Install dependencies run: | sudo apt update sudo apt install --no-install-recommends libxkbcommon-dev - - uses: pre-commit/action@v3.0.0 + - uses: pre-commit/action@v3.0.1