ci: run python flow only when files under the python/ path are changed

This commit is contained in:
c9s 2022-06-08 15:17:19 +08:00
parent 854661bc71
commit c54fec4c80
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -3,8 +3,13 @@ name: Python
on: on:
push: push:
branches: [ main ] branches: [ main ]
paths:
- python
pull_request: pull_request:
branches: [ main ] branches: [ main ]
paths:
- python
jobs: jobs:
@ -13,7 +18,7 @@ jobs:
strategy: strategy:
matrix: matrix:
python-version: [3.8] python-version: [ 3.8 ]
steps: steps:
- name: Checkout code - name: Checkout code