mirror of
https://github.com/krahets/hello-algo.git
synced 2026-10-29 11:44:33 +08:00
ci: update checkout and selected language setup Actions (#1848)
Co-authored-by: krahets <krahets@163.com>
This commit is contained in:
6
.github/workflows/python.yml
vendored
6
.github/workflows/python.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user