From 2e25de10efc517892f640f618ba304d9f6291cbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BD=97=E6=B3=BD=E8=BD=A9?= Date: Fri, 13 Dec 2024 03:44:47 +0000 Subject: [PATCH] use 3.7 script --- .github/workflows/lint.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 23214533c..1dfbff307 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -9,7 +9,8 @@ jobs: - uses: actions/checkout@v4 - name: spell check run: | - python3 <(curl -s https://bootstrap.pypa.io/get-pip.py) + # the python version in self-hosted runner is 3.7, which is not supported by the latest get-pip.py + python3 <(curl -s https://bootstrap.pypa.io/pip/3.7/get-pip.py) pip install codespell==2.3.0 # ignore test files, go project names, binary files via `--skip` and special var/regex via `--ignore-words` git grep --cached -l '' | xargs codespell --skip 'fuzz/*,*_test.tmpl,testdata/*,*_test.go,go.mod,go.sum,*.gz' --ignore-words=.github/workflows/.ignore_words