mirror of
https://github.com/krahets/hello-algo.git
synced 2026-10-21 13:35:21 +08:00
ci: update checkout and selected language setup Actions (#1848)
Co-authored-by: krahets <[email protected]>
This commit is contained in:
co-authored by
krahets
parent
4d4e22a507
commit
112ee773e8
@@ -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