Skip to content

Commit 85d6777

Browse files
committed
use setup-python cache and remove unused deps
1 parent 22598bf commit 85d6777

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/CheckPRTemplate.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,21 @@ jobs:
1414
- name: Clone paddle
1515
uses: actions/checkout@v4
1616

17-
- name: Cache python dependencies
18-
uses: actions/cache@v4
17+
- uses: actions/setup-python@v5
1918
with:
20-
path: ~/.cache/pip
21-
key: checkpr_pip
19+
python-version: '3.13'
20+
cache: 'pip'
21+
22+
- name: Install dependencies
23+
run: |
24+
pip install -r httpx
2225
2326
- name: Check PR Template
2427
env:
2528
AGILE_PULL_ID: ${{ github.event.pull_request.number }}
2629
GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2730
run: |
28-
git checkout -b test
29-
pip install httpx pymysql PyGithub
30-
python tools/CheckPRTemplate.py;EXCODE=$?
31+
python tools/CheckPRTemplate.py; EXCODE=$?
3132
echo "EXCODE: $EXCODE"
3233
echo "ipipe_log_param_EXCODE: $EXCODE"
3334
set +x

0 commit comments

Comments
 (0)