ci: update checkout and selected language setup Actions (#1848)

Co-authored-by: krahets <krahets@163.com>
This commit is contained in:
Pádraic Slattery
2026-10-10 19:27:27 +02:00
committed by GitHub
parent 4d4e22a507
commit 112ee773e8
13 changed files with 40 additions and 16 deletions

View File

@@ -7,11 +7,13 @@ on:
push:
branches: ["main"]
paths:
- ".github/workflows/python.yml"
- "codes/python/**/*.py"
- "en/codes/python/**/*.py"
pull_request:
branches: ["main"]
paths:
- ".github/workflows/python.yml"
- "codes/python/**/*.py"
- "en/codes/python/**/*.py"
workflow_dispatch:
@@ -29,9 +31,9 @@ jobs:
python-version: ["3.10"]
code-dir: ["codes/python", "en/codes/python"]
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies