-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathaction.yml
More file actions
30 lines (29 loc) · 825 Bytes
/
action.yml
File metadata and controls
30 lines (29 loc) · 825 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: Setup Python Enviroment
outputs:
py_modified:
description: Python file changed
value: ${{ steps.filter.outputs.py_modified }}
py_modified_files:
value: ${{ steps.filter.outputs.py_modified_files }}
runs:
using: "composite"
steps:
- name: Get changed files
uses: dorny/paths-filter@v2
id: filter
with:
list-files: shell
filters: |
py_modified:
- added|modified: "./**/*.py"
- name: Setup Python
if: ${{ steps.filter.outputs.py_modified == 'true' }}
uses: actions/setup-python@v2
with:
python-version: 3.10.0
architecture: x64
cache: 'pip'
- name: Install dependencies
if: ${{ steps.filter.outputs.py_modified == 'true' }}
shell: bash
run: pip install -r requirements.txt